/* ============================================
   LOGIN PAGE — v38 Refined Polish
   ============================================ */

.login-page,
.login-page *,
.login-page *::before,
.login-page *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.login-page {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #d4d4d8;
  background: var(--bg-page);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===================== BACKGROUND ===================== */
.login-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.login-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(250, 204, 21, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 204, 21, 0.018) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(ellipse at 22% 48%, black 3%, transparent 40%);
  -webkit-mask-image: radial-gradient(ellipse at 22% 48%, black 3%, transparent 40%);
  animation: gridFadeIn 2.5s ease both;
}

@keyframes gridFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.login-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(75px);
  opacity: 0;
  animation: glowIn 3s ease 0.7s both;
}

@keyframes glowIn {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 0.3; transform: scale(1); }
}

.login-bg-glow--1 {
  width: 320px;
  height: 320px;
  top: -40px;
  left: -5px;
  background: rgba(250, 204, 21, 0.06);
  animation: glowFloat1 12s ease-in-out infinite 3s, glowIn 3s ease 0.7s both;
}

.login-bg-glow--2 {
  width: 180px;
  height: 180px;
  bottom: -15px;
  right: 5px;
  background: rgba(217, 119, 6, 0.025);
  animation: glowFloat2 14s ease-in-out infinite 4s, glowIn 3s ease 0.9s both;
}

@keyframes glowFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(10px, 6px) scale(1.03); }
  50% { transform: translate(-3px, 12px) scale(0.98); }
  75% { transform: translate(7px, -4px) scale(1.01); }
}

@keyframes glowFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-6px, -4px) scale(1.04); }
  50% { transform: translate(4px, -8px) scale(0.96); }
  75% { transform: translate(-2px, 5px) scale(1.02); }
}

/* ===================== LAYOUT ===================== */
.login-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 24px;
  animation: wrapIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes wrapIn {
  from { opacity: 0; transform: translateY(36px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-content {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 820px;
  width: 100%;
  border-radius: 20px;
  border: 1.5px solid rgba(250, 204, 21, 0.12);
  background: rgba(9, 9, 11, 0.97);
  overflow: hidden;
  position: relative;
  transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  animation: contentIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.008) inset,
    0 0 20px -6px rgba(250, 204, 21, 0.035),
    0 8px 16px -4px rgba(0, 0, 0, 0.22);
}

/* Animated border glow */
.login-content::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: conic-gradient(from 0deg, transparent, rgba(250, 204, 21, 0.1), transparent, rgba(250, 204, 21, 0.05), transparent);
  z-index: -1;
  animation: borderSpin 18s linear infinite;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.login-content:hover::before {
  opacity: 1;
}

@keyframes borderSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes contentIn {
  from { opacity: 0; transform: scale(0.92) translateY(24px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.login-content:hover {
  border-color: rgba(250, 204, 21, 0.22);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.012) inset,
    0 0 40px -6px rgba(250, 204, 21, 0.07),
    0 12px 24px -5px rgba(0, 0, 0, 0.28);
}

/* Top gold accent line */
.login-top-line {
  position: absolute;
  top: 0;
  left: 4%;
  right: 4%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(250, 204, 21, 0.12) 10%, rgba(250, 204, 21, 0.35) 50%, rgba(250, 204, 21, 0.12) 90%, transparent 100%);
  z-index: 1;
  animation: linePulse 6s ease infinite;
}

@keyframes linePulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

/* Bottom gold accent line */
.login-bottom-line {
  position: absolute;
  bottom: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(250, 204, 21, 0.04), transparent);
  z-index: 1;
}

/* ===================== BRAND ===================== */
.login-brand {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 42px 36px;
  position: relative;
  animation: brandIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.login-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 12% 22%, rgba(250, 204, 21, 0.008) 0%, transparent 38%),
    radial-gradient(ellipse at 72% 62%, rgba(250, 204, 21, 0.004) 0%, transparent 32%);
  pointer-events: none;
}

@keyframes brandIn {
  from { opacity: 0; transform: translateX(-28px); }
  to { opacity: 1; transform: translateX(0); }
}

.login-brand-inner {
  width: 100%;
  max-width: 290px;
  position: relative;
  z-index: 1;
}

/* Logo */
.login-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
  animation: logoIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

@keyframes logoIn {
  from { opacity: 0; transform: translateY(-16px) scale(0.93); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-logo img {
  height: 64px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(250, 204, 21, 0.06));
  transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.login-logo:hover img {
  filter: drop-shadow(0 0 20px rgba(250, 204, 21, 0.12));
  transform: scale(1.05);
}

.login-logo-text {
  font-size: 1.06rem;
  font-weight: 700;
  color: #fafafa;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.login-logo-text small {
  display: block;
  font-size: 0.52rem;
  font-weight: 600;
  color: #facc15;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  margin-top: 4px;
  opacity: 0.6;
  animation: textGlow 5s ease-in-out infinite 1.5s;
}

@keyframes textGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; text-shadow: 0 0 12px rgba(250, 204, 21, 0.1); }
}

/* Hero */
.login-hero {
  font-size: 1.68rem;
  font-weight: 800;
  color: #fafafa;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
  animation: heroIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-hero-accent {
  background: linear-gradient(135deg, #facc15 0%, #f59e0b 20%, #d97706 50%, #f59e0b 80%, #facc15 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 300% 100%;
  animation: shimmer 7s ease infinite;
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.login-hero-sub {
  font-size: 0.73rem;
  color: #71717a;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 250px;
  animation: subIn 0.9s ease 0.55s both;
}

@keyframes subIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Stats */
.login-stats {
  display: flex;
  align-items: center;
  padding: 13px 16px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.014);
  border: 1px solid rgba(255, 255, 255, 0.025);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  animation: statsIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}

@keyframes statsIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-stats:hover {
  border-color: rgba(250, 204, 21, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.login-stat {
  flex: 1;
  text-align: center;
  position: relative;
}

/* Pulse indicator dots */
.login-stat-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  margin: 0 auto 5px;
  position: relative;
}

.login-stat-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  animation: dotPulse 3s ease-in-out infinite;
}

.login-stat-dot--green {
  background: #22c55e;
}

.login-stat-dot--green::after {
  background: rgba(34, 197, 94, 0.18);
  animation-delay: 0s;
}

.login-stat-dot--blue {
  background: #3b82f6;
}

.login-stat-dot--blue::after {
  background: rgba(59, 130, 246, 0.18);
  animation-delay: 1s;
}

.login-stat-dot--amber {
  background: #facc15;
}

.login-stat-dot--amber::after {
  background: rgba(250, 204, 21, 0.18);
  animation-delay: 2s;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(3); opacity: 0; }
}

.login-stat strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  color: #e4e4e7;
  letter-spacing: -0.03em;
}

.login-stat strong small {
  font-size: 0.4em;
  color: #facc15;
  font-weight: 700;
  opacity: 0.55;
}

.login-stat span {
  display: block;
  font-size: 0.42rem;
  font-weight: 600;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 3px;
}

.login-stat-divider {
  width: 1px;
  height: 15px;
  background: rgba(255, 255, 255, 0.03);
}

/* ===================== DIVIDER ===================== */
.login-divider {
  width: 1px;
  position: relative;
  flex-shrink: 0;
  align-self: stretch;
  background: linear-gradient(to bottom, transparent 2%, rgba(250, 204, 21, 0.05) 50%, transparent 98%);
}

/* Small gold diamond in center of divider */
.login-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 3px;
  background: #facc15;
  transform: translate(-50%, -50%) rotate(45deg);
  opacity: 0.1;
  box-shadow: 0 0 4px rgba(250, 204, 21, 0.08);
  animation: diamondPulse 5s ease-in-out infinite 1.5s;
}

@keyframes diamondPulse {
  0%, 100% { opacity: 0.06; box-shadow: 0 0 2px rgba(250, 204, 21, 0.06); }
  50% { opacity: 0.22; box-shadow: 0 0 8px rgba(250, 204, 21, 0.15); }
}

/* ===================== CARD ===================== */
.login-card-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 42px 36px;
  animation: cardIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}

.login-card {
  width: 100%;
  max-width: 290px;
  display: flex;
  flex-direction: column;
}

/* Header */
.login-card-header {
  text-align: center;
  margin-bottom: 22px;
}

.login-card-header h2 {
  font-size: 1.18rem;
  font-weight: 800;
  color: #fafafa;
  letter-spacing: -0.03em;
  margin-bottom: 5px;
}

.login-card-header p {
  font-size: 0.68rem;
  color: #71717a;
  font-weight: 500;
}

/* ===================== FORM ===================== */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
  flex: 1;
}

.login-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.login-field label {
  display: block;
  font-size: 0.64rem;
  font-weight: 600;
  color: #a1a1aa;
  margin-bottom: 5px;
  letter-spacing: 0.01em;
}

.login-forgot {
  font-size: 0.6rem;
  font-weight: 600;
  color: #facc15;
  text-decoration: none;
  transition: all 0.35s;
  opacity: 0.55;
  position: relative;
}

.login-forgot::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: rgba(250, 204, 21, 0.45);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.login-forgot:hover {
  color: #fde047;
  opacity: 1;
}

.login-forgot:hover::after {
  width: 100%;
}

/* Input */
.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-icon {
  position: absolute;
  left: 11px;
  color: #52525b;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

.login-input {
  width: 100%;
  height: 40px;
  padding: 0 11px 0 38px;
  font-size: 0.77rem;
  font-family: inherit;
  color: #fafafa;
  background: rgba(255, 255, 255, 0.018);
  border: 1.5px solid #27272a;
  border-radius: 9px;
  outline: none;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.login-input::placeholder {
  color: #52525b;
  transition: all 0.5s ease;
}

.login-input:hover {
  border-color: #3f3f46;
  background: rgba(255, 255, 255, 0.025);
}

.login-input:focus {
  border-color: rgba(250, 204, 21, 0.24);
  background: rgba(255, 255, 255, 0.038);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.025);
}

.login-input:focus::placeholder {
  color: #3f3f46;
  transform: translateX(3px);
}

.login-input-wrap:has(.login-input:focus) .login-input-icon {
  color: #facc15;
  opacity: 0.5;
  transform: scale(1.06);
}

/* Eye button */
.login-eye {
  position: absolute;
  right: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  color: #52525b;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

.login-eye:hover {
  color: #a1a1aa;
  background: rgba(255, 255, 255, 0.018);
  transform: scale(1.06);
}

/* Checkbox */
.login-checkbox {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.64rem;
  color: #71717a;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s;
}

.login-checkbox:hover {
  color: #a1a1aa;
}

.login-checkbox input {
  display: none;
}

.login-checkbox-mark {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  border: 1.5px solid #3f3f46;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  flex-shrink: 0;
}

.login-checkbox-mark svg {
  opacity: 0;
  transform: scale(0.35);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  color: #09090b;
}

.login-checkbox:hover .login-checkbox-mark {
  border-color: #52525b;
}

.login-checkbox input:checked ~ .login-checkbox-mark {
  border-color: #facc15;
  background: #facc15;
  box-shadow: 0 0 6px rgba(250, 204, 21, 0.1);
  transform: scale(1.1);
}

.login-checkbox input:checked ~ .login-checkbox-mark svg {
  opacity: 1;
  transform: scale(1);
}

/* ===================== BUTTON ===================== */
.login-btn {
  position: relative;
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #facc15 0%, #eab308 30%, #ca8a04 65%, #facc15 100%);
  background-size: 300% 100%;
  color: #09090b;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  margin-top: 3px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(250, 204, 21, 0.04);
  letter-spacing: 0.01em;
  animation: btnGradient 6s ease infinite;
}

@keyframes btnGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.login-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 22%, rgba(0,0,0,0.015) 100%);
  pointer-events: none;
}

.login-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.login-btn:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.14);
}

.login-btn:hover::after {
  left: 100%;
}

.login-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 1px 3px rgba(250, 204, 21, 0.04);
}

.login-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  transform: none;
}

/* States */
.login-btn-text {
  position: relative;
  z-index: 1;
}

.login-btn-loading,
.login-btn-done {
  display: none;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.login-btn-spinner {
  animation: spin 0.7s linear infinite;
}

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

.login-btn.loading .login-btn-text { display: none; }
.login-btn.loading .login-btn-loading { display: flex; }

.login-btn.done {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.04);
  animation: none;
}

.login-btn.done .login-btn-text { display: none; }
.login-btn.done .login-btn-done { display: flex; }

/* ===================== ERROR ===================== */
.login-error {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 7px;
  background: rgba(239, 68, 68, 0.02);
  border: 1px solid rgba(239, 68, 68, 0.04);
  color: #fca5a5;
  font-size: 0.66rem;
  font-weight: 500;
  margin-bottom: 2px;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}

/* ===================== FOOTER ===================== */
.login-footer {
  margin-top: 18px;
}

.login-footer-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 12px;
}

.login-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.login-trust-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.48rem;
  font-weight: 600;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 3px 6px;
  border-radius: 4px;
}

.login-trust-item:hover {
  color: #a1a1aa;
  background: rgba(255, 255, 255, 0.015);
  transform: translateY(-1px);
}

.login-trust-item svg {
  color: #facc15;
  opacity: 0.3;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.login-trust-item:hover svg {
  opacity: 0.55;
  transform: scale(1.15);
}

/* ===================== 2FA ===================== */
.login-card.twofa #password-field { display: none; }
.login-card.twofa .login-checkbox { display: none; }

.login-card.twofa #totp-field {
  animation: slideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

#totp-field .login-input {
  text-align: center;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.5em;
  padding-left: 14px;
}

/* ===================== ILLUSTRATION ===================== */
.login-illustration {
  margin-bottom: 24px;
  animation: illustrationIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
  border-radius: 8px;
  overflow: hidden;
}

@keyframes illustrationIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-illustration svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ===================== LOCK ICON ===================== */
.login-card-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(250, 204, 21, 0.06);
  border: 1px solid rgba(250, 204, 21, 0.1);
  color: #facc15;
  margin: 0 auto 12px;
  animation: lockIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

@keyframes lockIn {
  from { opacity: 0; transform: scale(0.8) translateY(-5px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===================== VALIDATION INDICATOR ===================== */
.login-validation {
  position: absolute;
  right: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #22c55e;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.login-validation--visible {
  opacity: 1;
  transform: scale(1);
}

.login-input-wrap--valid {
  border-color: rgba(34, 197, 94, 0.2) !important;
}

.login-input-wrap--valid .login-input {
  border-color: rgba(34, 197, 94, 0.2);
}

.login-input-wrap--invalid .login-input {
  border-color: rgba(239, 68, 68, 0.25);
}

/* ===================== CAPS LOCK WARNING ===================== */
.login-caps-warning {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--color-warning);
  margin-top: 5px;
  padding: 4px 8px;
  border-radius: 5px;
  background: rgba(245, 158, 11, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.08);
  animation: capsIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes capsIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-caps-warning svg {
  flex-shrink: 0;
}

/* ===================== ENTER KEY HINT ===================== */
.login-enter-hint {
  text-align: center;
  font-size: 0.6rem;
  color: #52525b;
  margin-top: 8px;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.login-enter-hint--visible {
  opacity: 1;
  transform: translateY(0);
}

.login-enter-hint kbd {
  display: inline-block;
  padding: 1px 5px;
  font-size: 0.58rem;
  font-family: inherit;
  color: #71717a;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* ===================== SPARKLINE ===================== */
.login-sparkline {
  display: block;
  width: 50px;
  height: 16px;
  margin: 4px auto 0;
  opacity: 0;
  animation: sparklineIn 0.8s ease 0.8s both;
}

@keyframes sparklineIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===================== EYE TOGGLE ANIMATION ===================== */
.login-eye {
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.login-eye--active {
  color: #a1a1aa;
  background: rgba(255, 255, 255, 0.03);
}

.login-eye svg {
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===================== COPYRIGHT ===================== */
.login-copyright {
  text-align: center;
  font-size: 0.5rem;
  font-weight: 500;
  color: #71717a;
  letter-spacing: 0.08em;
  margin-top: 14px;
  text-transform: uppercase;
}

/* ===================== CAPTCHA ===================== */
.login-captcha {
  margin-top: 2px;
}

.login-captcha-header {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.64rem;
  font-weight: 600;
  color: #a1a1aa;
  margin-bottom: 8px;
}

.login-captcha-header svg {
  color: #facc15;
  opacity: 0.5;
}

.login-captcha-image {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.login-captcha-image img {
  height: 50px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: #1a1a1f;
}

.login-captcha-refresh {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  color: #52525b;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.login-captcha-refresh:hover {
  color: #a1a1aa;
  background: rgba(255, 255, 255, 0.04);
  transform: rotate(90deg);
}

.login-captcha-input .login-input {
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

/* ===================== TURNSTILE ===================== */
#turnstile-section {
  margin-top: 4px;
}

.cf-turnstile {
  display: flex;
  justify-content: center;
}

/* ===================== OPTIONS ROW ===================== */
.login-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.login-email-otp-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: #facc15;
  font-size: 0.62rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s ease;
  padding: 0;
}

.login-email-otp-toggle:hover {
  opacity: 1;
}

.login-email-otp-toggle svg {
  opacity: 0.7;
}

/* ===================== EMAIL OTP ===================== */
.login-email-otp {
  animation: slideIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.login-email-otp-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(250, 204, 21, 0.04);
  border: 1px solid rgba(250, 204, 21, 0.08);
  margin-bottom: 12px;
  font-size: 0.7rem;
  color: #a1a1aa;
}

.login-email-otp-info svg {
  color: #facc15;
  opacity: 0.6;
  flex-shrink: 0;
}

.login-email-otp-info strong {
  color: #fafafa;
}

.login-btn--secondary {
  background: rgba(255, 255, 255, 0.04);
  color: #a1a1aa;
  border: 1.5px solid #27272a;
  box-shadow: none;
  animation: none;
  margin-top: 4px;
}

.login-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: #3f3f46;
  color: #fafafa;
  box-shadow: none;
}

.login-btn--secondary::before {
  display: none;
}

.login-link-btn {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: #52525b;
  font-size: 0.62rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  margin-top: 8px;
  padding: 4px;
  transition: color 0.2s;
}

.login-link-btn:hover {
  color: #a1a1aa;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .login-brand { display: none; }
  .login-divider { display: none; }
  .login-content { max-width: 350px; }
  .login-card-wrap { padding: 30px 24px; }
}

@media (max-width: 480px) {
  .login-wrap { padding: 5px; }
  .login-content { border-radius: 14px; }
  .login-card-wrap { padding: 22px 13px; }
  .login-card-header h2 { font-size: 1.06rem; }
}
