/* ─── LOGIN PAGE SHELL ─────────────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F8FAFC;
  position: relative;
  overflow: hidden;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Decorative grid background */
.login-grid-decor {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.03) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(192, 132, 252, 0.03) 0%, transparent 55%),
    linear-gradient(rgba(59, 130, 246, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 44px 44px, 44px 44px;
  pointer-events: none;
}

/* Scanline effect */
.scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.04) 2px,
    rgba(0, 0, 0, 0.04) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* Radial vignette overlay */
.login-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.03) 100%);
  z-index: 1;
  pointer-events: none;
}

/* ─── LOGIN CARD ───────────────────────────────────────────────────────────── */
.login-card {
  width: 440px;
  max-width: calc(100vw - 40px);
  padding: 44px 40px 36px;
  z-index: 2;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(40px) saturate(1.5);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 28px;
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.03),
    0 30px 80px rgba(0, 0, 0, 0.08),
    0 0 60px rgba(59, 130, 246, 0.02);
}

/* Ambient top highlight */
.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
  border-radius: 50%;
}

/* ─── HEADER ───────────────────────────────────────────────────────────────── */
.login-header {
  text-align: center;
  margin-bottom: 36px;
}

.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.logo-icon-wrapper {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 14px;
  position: relative;
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.15);
}

.logo-icon-wrapper::after {
  content: '';
  position: absolute;
  inset: -3px;
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 17px;
  animation: pulse-ring 2.5s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 0.1; transform: scale(1.08); }
}

.login-title {
  font-size: 26px;
  font-weight: 800;
  color: #1E293B;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}

.login-subtitle {
  color: #64748b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 600;
  margin: 0;
}

/* ─── FORM ─────────────────────────────────────────────────────────────────── */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.input-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #475569;
  transition: color 0.25s;
  pointer-events: none;
}

.login-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 13px 14px 13px 44px;
  color: #1E293B;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.login-input::placeholder {
  color: rgba(0, 0, 0, 0.3);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 2px;
}

.login-input:focus {
  background: rgba(59, 130, 246, 0.04);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08), 0 0 20px rgba(59, 130, 246, 0.06);
}

.login-input:focus ~ .input-icon,
.input-wrapper:focus-within .input-icon {
  color: rgba(59, 130, 246, 0.8);
}

/* ─── EXTRAS ROW ───────────────────────────────────────────────────────────── */
.login-extras {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  margin-bottom: 24px;
  margin-top: 2px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #64748b;
  cursor: pointer;
  user-select: none;
  font-weight: 500;
}

/* Custom checkbox */
.remember-me input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.02);
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  flex-shrink: 0;
}

.remember-me input[type="checkbox"]:checked {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.6);
}

.remember-me input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--accent-cyan, #3B82F6);
  border-radius: 2px;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.forgot-password {
  color: rgba(59, 130, 246, 0.8);
  text-decoration: none;
  font-weight: 600;
  font-size: 12.5px;
  transition: color 0.2s;
}

.forgot-password:hover {
  color: #3B82F6;
}

/* ─── SUBMIT BUTTON ────────────────────────────────────────────────────────── */
.login-button {
  width: 100%;
  height: 52px;
  background: #3B82F6;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.25), 0 0 0 1px rgba(59, 130, 246, 0.3);
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
}

.login-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(59, 130, 246, 0.4), 0 0 0 1px rgba(59, 130, 246, 0.4);
  background: #60A5FA;
}

.login-button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.login-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ─── SECURITY BADGE ───────────────────────────────────────────────────────── */
.security-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  margin-top: 20px;
  color: #10B981;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 10px;
}

/* ─── FOOTER ───────────────────────────────────────────────────────────────── */
.login-footer {
  text-align: center;
  font-size: 13px;
  color: #475569;
  margin-top: 16px;
  font-weight: 400;
}

.login-footer a {
  color: rgba(59, 130, 246, 0.85);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}

.login-footer a:hover {
  color: #3B82F6;
}

/* ─── BG DECORATIVE TEXT (bottom-left) ────────────────────────────────────── */
.login-sys-log {
  position: absolute;
  bottom: 32px;
  left: 36px;
  opacity: 0.12;
  pointer-events: none;
  z-index: 2;
  line-height: 1.8;
}

.login-sys-log p {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: #3B82F6;
  margin: 0;
}

/* ─── STATUS INDICATORS (bottom-right of page, NOT card) ──────────────────── */
.login-status-indicators {
  position: absolute;
  bottom: 32px;
  right: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.25;
  z-index: 2;
  pointer-events: none;
}

.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: status-blink 2s ease-in-out infinite;
}

@keyframes status-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px currentColor; }
  50%       { opacity: 0.4; box-shadow: none; }
}

/* ─── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .login-card {
    padding: 36px 24px 28px;
    border-radius: 20px;
    gap: 0;
  }

  .login-title { font-size: 22px; }
  .login-subtitle { font-size: 10px; letter-spacing: 1.5px; }
  .login-sys-log, .login-status-indicators { display: none; }
}
