/* LOGIN.CSS — Executive Dark — Clean & Professional */

/* ─── CONTAINER ─── */
.login-container {
  display: none;
  min-height: 100vh;
  position: relative;
  background: #070B13;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  animation: none !important; /* remove aurora */
}
.login-container.active { display: flex; }

/* Subtle radial depth — single, restrained color source */
.login-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(61, 106, 142, 0.14) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 50% 110%, rgba(43, 77, 104, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle noise grain texture for premium feel */
.login-container::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.025;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  mix-blend-mode: overlay;
}

/* Blobs removidos — sem cores excessivas */
.login-bg-blobs { display: none; }
.blob-1, .blob-2, .blob-3 { animation: none !important; }

/* ─── CARD ─── */
.login-wrapper {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 48px 40px 40px;
  width: min(420px, 92vw);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 4px 16px rgba(0, 0, 0, 0.3);
  animation: slideUp 450ms var(--spring-soft) both;
}

/* Thin top accent line */
.login-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(61, 106, 142, 0.6), transparent);
  border-radius: 0 0 var(--r-full) var(--r-full);
}

/* ─── LOGO SECTION ─── */
.login-logo {
  text-align: center;
  margin-bottom: 36px;
}

.login-avatar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.profile-logo {
  width: 80px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6));
  opacity: 0.97;
}
.avatar-icon-fallback { display: none; }

.login-logo h1 {
  color: #D8E3EF;
  font-size: 1.375rem;
  font-weight: var(--fw-black);
  margin-bottom: 6px;
  letter-spacing: -0.025em;
}
.login-tagline {
  color: rgba(255, 255, 255, 0.28);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: var(--fw-medium);
}

/* Separator under logo */
.login-logo::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 24px auto 0;
}

/* ─── FORM ─── */
.login-form .form-group.input-float {
  position: relative;
  margin-bottom: 12px;
}

.login-form input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #D8E3EF;
  padding: 13px 44px 13px 42px;
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  font-family: var(--font);
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}
.login-form input::placeholder { color: rgba(255, 255, 255, 0.22); }
.login-form input:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(61, 106, 142, 0.65);
  box-shadow: 0 0 0 3px rgba(61, 106, 142, 0.12);
  outline: none;
}

.field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.8125rem;
  pointer-events: none;
  z-index: 1;
}
.toggle-password-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.28);
  font-size: 0.8125rem;
  cursor: pointer;
  padding: 4px;
  z-index: 1;
  transition: color 200ms ease;
}
.toggle-password-btn:hover { color: rgba(255, 255, 255, 0.65); }

/* ─── CTA BUTTON ─── */
.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  background: var(--grad-primary);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: var(--fw-semi);
  font-family: var(--font);
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
  margin-top: 8px;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 20px rgba(61, 106, 142, 0.35);
}
.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(61, 106, 142, 0.5);
  filter: brightness(1.08);
}
.login-btn:active { transform: translateY(0); filter: brightness(0.96); }
.login-btn i { font-size: 0.875rem; opacity: 0.85; }

/* ─── ERROR ─── */
.login-error {
  display: none;
  color: rgba(239, 100, 100, 0.9);
  font-size: 0.8125rem;
  text-align: center;
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(239, 35, 60, 0.08);
  border-radius: var(--r-sm);
  border: 1px solid rgba(239, 35, 60, 0.2);
}
.login-error.show { display: block; animation: shake 400ms ease; }

/* ─── SECONDARY ACTIONS ─── */
.forgot-password-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.28);
  font-size: 0.8125rem;
  font-family: var(--font);
  cursor: pointer;
  padding: 12px 0 0;
  transition: color 200ms ease;
}
.forgot-password-link:hover { color: rgba(255, 255, 255, 0.6); }
.forgot-password-link i { font-size: 0.75rem; }

/* ─── HINT ─── */
.login-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 20px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 16px;
}
.login-hint strong { color: rgba(255, 255, 255, 0.35); font-weight: var(--fw-medium); }
.login-hint i { font-size: 0.6875rem; color: rgba(255, 255, 255, 0.15); }

/* ─── DEV CREDIT ─── */
.login-dev-credit {
  text-align: center;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.15);
  margin-top: 10px;
  letter-spacing: 0.01em;
}
.login-dev-credit a {
  color: rgba(255, 255, 255, 0.3);
  font-weight: var(--fw-semi);
  text-decoration: none;
  transition: color 200ms ease;
}
.login-dev-credit a:hover { color: rgba(255, 255, 255, 0.6); }

/* ─── DESKTOP (1024px+) — card slightly elevated and centered with subtle brand context ─── */
@media (min-width: 1024px) {
  .login-wrapper {
    padding: 56px 48px 48px;
    width: min(460px, 90vw);
  }
  .profile-logo { width: 96px; }
  .login-logo h1 { font-size: 1.625rem; }
  .login-wrapper::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 21px;
    background: linear-gradient(
      145deg,
      rgba(255,255,255,0.07) 0%,
      transparent 40%,
      transparent 60%,
      rgba(61,106,142,0.05) 100%
    );
    pointer-events: none;
    z-index: -1;
  }
}

/* ─── RESET PASSWORD MODAL ─── */
.reset-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.reset-modal-overlay.active { display: flex; }

.reset-modal {
  position: relative;
  background: #0F1520;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px 36px;
  width: min(400px, 92vw);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  animation: slideUp 400ms var(--spring-soft) both;
  text-align: center;
}
.reset-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 200ms ease;
}
.reset-modal-close:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.reset-modal-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(61, 106, 142, 0.15);
  border: 1px solid rgba(61, 106, 142, 0.25);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.25rem;
  color: var(--primary-light);
}

.reset-modal-title {
  color: #D8E3EF;
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.reset-modal-desc {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.875rem;
  margin-bottom: 24px;
  line-height: 1.6;
}
.reset-modal-desc strong { color: var(--primary-light); font-weight: var(--fw-medium); }

/* Reset Steps */
.reset-step { display: none; }
.reset-step.active { display: block; }

/* Reset Inputs */
.reset-input-group {
  position: relative;
  margin-bottom: 12px;
}
.reset-input-group i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.875rem;
}
.reset-input-group input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #D8E3EF;
  padding: 13px 16px 13px 42px;
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  font-family: var(--font);
  transition: all 200ms ease;
  box-sizing: border-box;
}
.reset-input-group input::placeholder { color: rgba(255, 255, 255, 0.22); }
.reset-input-group input:focus {
  outline: none;
  border-color: rgba(61, 106, 142, 0.65);
  box-shadow: 0 0 0 3px rgba(61, 106, 142, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

/* Code digit inputs */
.reset-code-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}
.reset-code-digit {
  width: 46px; height: 54px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  text-align: center;
  font-size: 1.5rem;
  font-weight: var(--fw-bold);
  font-family: var(--font);
  color: #D8E3EF;
  transition: all 200ms ease;
}
.reset-code-digit:focus {
  outline: none;
  border-color: rgba(61, 106, 142, 0.65);
  box-shadow: 0 0 0 3px rgba(61, 106, 142, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

/* Reset buttons */
.reset-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  background: var(--grad-primary);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: var(--fw-semi);
  font-family: var(--font);
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
  box-shadow: 0 4px 16px rgba(61, 106, 142, 0.3);
}
.reset-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(61, 106, 142, 0.4);
}
.reset-btn:active { transform: translateY(0); }
.reset-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; filter: none; }

.reset-link-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
  font-family: var(--font);
  cursor: pointer;
  margin-top: 12px;
  padding: 4px 8px;
  transition: color 200ms ease;
}
.reset-link-btn:hover { color: rgba(255, 255, 255, 0.65); }

/* Reset error */
.reset-error {
  color: rgba(239, 100, 100, 0.85);
  font-size: 0.8rem;
  margin-top: 10px;
  min-height: 1em;
}
