/* ==========================================================================
   RAJESH FRAMING - LUXURY ADMIN PORTAL LOGIN STYLESHEET
   Aesthetics: Deep Midnight Luxury Glassmorphism & Gold Accent Security Portal
   ========================================================================== */

:root {
  --login-bg: #070B14;
  --login-card-bg: rgba(15, 23, 42, 0.78);
  --login-border: rgba(255, 255, 255, 0.1);
  --login-border-focus: #C89B3C;
  --login-gold: #C89B3C;
  --login-gold-gradient: linear-gradient(135deg, #D4AF37 0%, #AA8010 100%);
  --login-text-main: #F8FAFC;
  --login-text-muted: #94A3B8;
  --login-input-bg: rgba(30, 41, 59, 0.65);
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
}

* {
  box-sizing: border-box;
}

body.admin-login-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--login-bg);
  font-family: var(--font-main);
  color: var(--login-text-main);
  position: relative;
  overflow-x: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ambient Background Lights & Grid */
.login-ambient-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}

.login-glow-orb {
  position: fixed;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  height: 380px;
  background: radial-gradient(circle, rgba(200, 155, 60, 0.16) 0%, rgba(22, 101, 216, 0.08) 50%, transparent 75%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* Main Login Container */
.login-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 480px;
  padding: 24px 16px;
  margin: auto;
}

/* Glassmorphic Login Card */
.login-card {
  background: var(--login-card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--login-border);
  border-radius: 24px;
  padding: 44px 38px 36px;
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.65),
    0 0 45px rgba(200, 155, 60, 0.08);
  animation: loginCardFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes loginCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Brand Header */
.login-brand-header {
  text-align: center;
  margin-bottom: 28px;
}

.login-brand-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-bottom: 8px;
}

.login-logo-img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(245, 130, 32, 0.35));
  transition: transform 0.25s ease;
}

.login-brand-logo:hover .login-logo-img {
  transform: scale(1.08);
}

.login-brand-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #FFFFFF;
}

.login-brand-name span {
  color: #F58220;
}

.login-brand-tagline {
  font-size: 0.75rem;
  color: #9CA3AF;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}

.login-portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(200, 155, 60, 0.12);
  border: 1px solid rgba(200, 155, 60, 0.3);
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #E5B558;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin: 12px 0 10px;
}

.login-portal-badge svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.login-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 4px 0 8px;
  line-height: 1.2;
}

.login-subtitle {
  font-size: 0.88rem;
  color: var(--login-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Alert Notification Banner */
.login-alert {
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  display: none;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}

.login-alert.danger,
.login-alert.error {
  display: flex;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #FCA5A5;
}

.login-alert.success {
  display: flex;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6EE7B7;
}

.login-alert.info {
  display: flex;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93C5FD;
}

/* Form Controls */
.login-form-group {
  margin-bottom: 20px;
  text-align: left;
}

.login-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #E2E8F0;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.login-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  color: var(--login-text-muted);
  pointer-events: none;
  display: block;
  flex-shrink: 0;
}

.login-input {
  width: 100%;
  height: 48px;
  padding: 12px 42px 12px 42px;
  background: var(--login-input-bg);
  border: 1.5px solid var(--login-border);
  border-radius: 12px;
  color: #FFFFFF;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.login-input::placeholder {
  color: #64748B;
  font-weight: 400;
}

.login-input:focus {
  border-color: var(--login-gold);
  background: rgba(30, 41, 59, 0.95);
  box-shadow: 0 0 0 4px rgba(200, 155, 60, 0.18);
}

.login-input:focus + .login-input-icon,
.login-input-wrap:focus-within .login-input-icon {
  color: var(--login-gold);
}

.login-password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--login-text-muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.15s ease;
}

.login-password-toggle:hover {
  color: #FFFFFF;
}

.login-password-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Primary Action Buttons */
.btn-admin-gold {
  width: 100%;
  height: 48px;
  background: var(--login-gold-gradient);
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(200, 155, 60, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.btn-admin-gold:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 8px 24px rgba(200, 155, 60, 0.48);
  filter: brightness(1.04);
}

.btn-admin-gold:active {
  transform: translateY(0);
}

.btn-admin-gold:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-admin-outline {
  width: 100%;
  height: 44px;
  background: transparent;
  color: var(--login-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.86rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.btn-admin-outline:hover {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

/* Spinner */
.admin-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: adminSpin 0.7s linear infinite;
  display: inline-block;
}

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

/* 6-Digit Split OTP Input */
.otp-container {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 18px 0 22px;
}

.otp-box {
  width: 48px;
  height: 56px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  outline: none;
  font-family: monospace;
  transition: all 0.2s ease;
}

.otp-box:focus {
  border-color: var(--login-gold);
  box-shadow: 0 0 0 4px rgba(200, 155, 60, 0.22);
  background: rgba(30, 41, 59, 0.95);
  transform: translateY(-1px);
}

.otp-resend-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--login-text-muted);
  margin-bottom: 20px;
  padding: 0 4px;
}

.otp-resend-btn {
  background: none;
  border: none;
  color: var(--login-gold);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.82rem;
  padding: 0;
  font-family: inherit;
  transition: color 0.15s ease;
}

.otp-resend-btn:hover:not(:disabled) {
  text-decoration: underline;
  color: #E5B558;
}

.otp-resend-btn:disabled {
  color: #64748B;
  cursor: not-allowed;
  text-decoration: none;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .login-card {
    padding: 32px 22px 28px;
    border-radius: 18px;
  }

  .login-title {
    font-size: 1.55rem;
  }

  .otp-box {
    width: 40px;
    height: 48px;
    font-size: 1.35rem;
  }
}
