/* Login Page Specific Styling */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-color: var(--bg-primary);
  position: relative;
  overflow-x: hidden;
}

.login-wrapper {
  position: relative;
  width: 100%;
  max-width: 460px;
  z-index: 10;
}

/* Background glowing orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

.orb-1 {
  width: 280px;
  height: 280px;
  background: rgba(34, 158, 217, 0.22);
  top: -60px;
  left: -80px;
}

.orb-2 {
  width: 320px;
  height: 320px;
  background: rgba(139, 92, 246, 0.18);
  bottom: -80px;
  right: -90px;
}

/* Login Card */
.login-card {
  position: relative;
  z-index: 5;
  background: rgba(19, 28, 49, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  padding: 2.5rem 2rem;
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo-ring {
  display: inline-flex;
  padding: 8px;
  border-radius: 24px;
  background: rgba(34, 158, 217, 0.1);
  border: 1px solid rgba(34, 158, 217, 0.25);
  margin-bottom: 1rem;
}

.login-avatar {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  font-size: 1.5rem;
}

.login-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.login-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.security-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.sec-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

.sec-badge-shield {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

/* Lockdown Banner */
.lockdown-box {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.22) 0%, rgba(185, 28, 28, 0.3) 100%);
  border: 1.5px solid rgba(239, 68, 68, 0.65);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.2);
  animation: pulse-border 2s infinite ease-in-out;
}

@keyframes pulse-border {
  0%, 100% { border-color: rgba(239, 68, 68, 0.65); box-shadow: 0 0 15px rgba(239, 68, 68, 0.2); }
  50% { border-color: rgba(239, 68, 68, 0.95); box-shadow: 0 0 25px rgba(239, 68, 68, 0.4); }
}

.lockdown-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.lockdown-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.lockdown-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fca5a5;
  letter-spacing: -0.01em;
}

.lockdown-desc {
  margin: 3px 0 0 0;
  font-size: 0.78rem;
  color: #fecaca;
  line-height: 1.4;
}

.lockdown-timer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(239, 68, 68, 0.3);
}

.timer-label {
  font-size: 0.78rem;
  color: #fca5a5;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timer-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 10px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

/* Alert */
.login-alert {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  animation: shake 0.35s ease;
}

.login-alert.alert-warning {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.input-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.input-with-icon input {
  width: 100%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #fff;
  padding: 0.85rem 1rem 0.85rem 2.6rem;
  font-size: 0.92rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.input-with-icon input:focus {
  outline: none;
  border-color: var(--accent-tg);
  box-shadow: 0 0 0 3px rgba(34, 158, 217, 0.25);
  background: rgba(15, 23, 42, 0.98);
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.password-toggle-btn:hover {
  color: var(--accent-tg);
}

/* Remember Me Row (30 Days) */
.remember-row {
  margin-top: -0.25rem;
}

.remember-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.remember-label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.custom-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s ease;
}

.remember-label input:checked ~ .custom-checkbox {
  background: var(--accent-tg);
  border-color: var(--accent-tg);
}

.remember-label input:checked ~ .custom-checkbox::after {
  content: '✓';
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

.remember-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.remember-text strong {
  font-size: 0.85rem;
  color: var(--text-primary);
}

.remember-text small {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Submit Button */
.login-btn {
  width: 100%;
  padding: 0.9rem;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Footer Hint */
.login-footer-hint {
  margin-top: 1.75rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
}

.hint-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-tg);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.login-footer-hint p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.login-footer-hint code {
  font-family: var(--font-mono);
  background: rgba(34, 158, 217, 0.15);
  color: #64b5f6;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.login-footer-hint small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}
