/* Branding Styles */
.branding-section {
  background: linear-gradient(to bottom, #0b0f1a, #161b2e);
}

.logo-text { font-weight: 900; font-style: italic; letter-spacing: -0.05em; }
.tagline { color: #60a5fa; font-weight: 500; }
.hero-title { font-weight: 700; line-height: 1.2; }
.hero-desc { color: #94a3b8; line-height: 1.6; }

/* Form Styles */
.form-title { font-weight: 700; font-style: italic; color: white; }
.form-subtitle { color: #64748b; }
.field-label { display: block; color: #94a3b8; font-size: 0.875rem; margin-bottom: 0.5rem; }

/* INPUT PADRÃO */
.main-input {
  background-color: #161b2e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  color: white;
  outline: none;
  transition: all 0.2s;
}

.main-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* CONTAINER DA SENHA (O FIX) */
.password-wrapper {
  position: relative;
  width: 100%;
}

/* Garante que o texto não fique atrás do ícone */
.password-wrapper .main-input {
  padding-right: 3rem; 
}

/* BOTÃO DO OLHO CENTRALIZADO */
.eye-button {
  position: absolute;
  right: 1rem;
  top: 50%; /* Desce até a metade do container */
  transform: translateY(-50%); /* Sobe metade do próprio tamanho para centralizar perfeito */
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  padding: 0;
  z-index: 10;
}

.eye-button:hover {
  color: #ffffff;
}

/* Submit Button */
.submit-button {
  background-color: #2563eb;
  color: white;
  font-weight: 700;
  padding: 1rem;
  border-radius: 0.75rem;
  transition: all 0.2s;
  margin-top: 1rem;
}

.submit-button:hover { background-color: #1d4ed8; }

.footer-link { color: #64748b; font-size: 0.875rem; }
.footer-link a { color: #3b82f6; text-decoration: none; }
.footer-link a:hover { text-decoration: underline; }

.glow-effect {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 8rem;
  background-color: rgba(59, 130, 246, 0.1);
  filter: blur(64px);
  pointer-events: none;
}

.hidden { display: none; }

/* Page transition loader */
.stilla-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.76);
  backdrop-filter: blur(8px);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.stilla-loader.is-visible {
  opacity: 1;
  pointer-events: all;
}

.stilla-loader-card {
  width: min(92vw, 320px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  padding: 1.2rem 1rem;
  text-align: center;
}

.stilla-loader-brand {
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.03em;
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.stilla-loader-spinner {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 3px solid rgba(148, 163, 184, 0.35);
  border-top-color: #3b82f6;
  margin: 0 auto;
  animation: stilla-spin 0.85s linear infinite;
}

.stilla-loader-text {
  color: #cbd5e1;
  font-size: 0.92rem;
  margin-top: 0.8rem;
}

@keyframes stilla-spin {
  to {
    transform: rotate(360deg);
  }
}
