/* Base e reset */
* {
  box-sizing: border-box;
}

body,
html {
  height: 100%;
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: rgba(20, 20, 20, 0.9);
  color: #eee;
  overflow-x: hidden;
  position: relative;
}

.back-button {
  position: fixed;
  width: 52px;
  top: 20px;
  left: 20px;
  background: #007bff;
  color: #eee;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
  z-index: 20;
}

.back-button:hover {
  background: #0056b3;
}

/* Fundo animado */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background: rgba(20, 20, 20, 0.9);
  overflow: hidden;
}

svg#financial-graph {
  width: 100%;
  height: 100%;
  display: block;
}

.line-path {
  fill: none;
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
  transition: stroke 0.3s ease;
}

/* Container e centralização */
.container-wrapper {
  position: relative;
  z-index: 10;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  background: rgba(20, 20, 20, 0.9);
  padding: 60px 50px 70px;
  border-radius: 15px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.9);
  user-select: none;
  position: relative;
  backdrop-filter: blur(5px);
}

h2 {
  font-weight: 700;
  font-size: 3rem;
  margin-bottom: 25px;
  color: #007bff;
  line-height: 1.1;
  user-select: none;
}

/* Floating labels */
.floating-label-group {
  position: relative;
  margin-bottom: 25px;
  text-align: left;
}

.floating-label-group input {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid #eee;
  border-radius: 12px;
  background: rgba(20, 20, 20, 0.9);
  color: #eee;
  font-size: 1.1rem;
  transition: border-color 0.3s ease;
  position: relative;
  z-index: 1;
}

.floating-label-group input:focus {
  outline: none;
  border-color: #007bff;
  background: rgba(20, 20, 20, 0.9);
}

.floating-label-group label {
  position: absolute;
  top: 50%;
  left: 20px;
  color: #bbb;
  font-size: 1.1rem;
  font-weight: 400;
  pointer-events: none;
  transform: translateY(-50%);
  transition: 0.3s ease all;
  background-color: transparent;
  padding: 0 5px;
  user-select: none;
  z-index: 2;
}

.floating-label-group input:focus+label,
.floating-label-group input:not(:placeholder-shown)+label {
  top: -8px;
  font-size: 0.85rem;
  color: #007bff;
  background: rgba(20, 20, 20, 0.9);
  font-weight: 700;
  transform: none;
}

/* Botão principal */
button {
  background: linear-gradient(90deg, #007bff, #002080);
  color: #eee;
  font-weight: 700;
  border: none;
  border-radius: 30px;
  padding: 18px 0;
  width: 100%;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.3s ease;
  user-select: none;
}

button:hover {
  background: linear-gradient(90deg, #004ea1, #00255a);
}

/* Mensagem de erro */
.error-message {
  margin-bottom: 20px;
  color: #ff4d4d;
  font-weight: 700;
  user-select: none;
  text-align: center;
}