/* assets/css/auth.css - Enterprise Authentication Portal Design System */

:root {
  --auth-bg-dark: #090d16;
  --auth-primary: #2563eb;
  --auth-primary-hover: #1d4ed8;
  --auth-primary-glow: rgba(37, 99, 235, 0.25);
  --auth-slate-900: #0f172a;
  --auth-slate-800: #1e293b;
  --auth-slate-700: #334155;
  --auth-slate-600: #475569;
  --auth-slate-400: #94a3b8;
  --auth-slate-200: #e2e8f0;
  --auth-slate-100: #f1f5f9;
  --auth-slate-50: #f8fafc;
}

body.auth-body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--auth-bg-dark);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  overflow-x: hidden;
}

/* Ambient glow orbs in background */
.auth-bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}
.auth-bg-glow-1 {
  top: -15%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #1d4ed8 0%, transparent 70%);
}
.auth-bg-glow-2 {
  bottom: -15%;
  right: -10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #4338ca 0%, transparent 70%);
}

/* Central Split-Card Layout */
.auth-card-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1060px;
  margin: auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
  background: #ffffff;
  animation: authCardFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Hero Showcase Column (Left on Desktop) */
.auth-hero-column {
  background: linear-gradient(155deg, #0b1329 0%, #0f172a 40%, #1e293b 100%);
  color: #ffffff;
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-hero-column::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.15), transparent 60%);
  pointer-events: none;
}

.auth-brand-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.auth-brand-logo {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #ffffff;
  box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
}

.auth-brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.2;
}

.auth-brand-sub {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  font-weight: 600;
}

.auth-hero-content {
  margin: auto 0;
  padding: 1.5rem 0;
}

.auth-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.auth-hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #f8fafc;
  margin-bottom: 1rem;
}

.auth-hero-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 2rem;
}

.auth-feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.auth-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.auth-feature-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.15rem;
}

.auth-feature-desc {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.4;
}

.auth-hero-footer {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #94a3b8;
}

.auth-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 10px #10b981;
}

/* Interactive Form Column (Right on Desktop) */
.auth-form-column {
  background: #ffffff;
  padding: 3.5rem 3.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .auth-form-column {
    padding: 2.25rem 1.75rem;
  }
}

.auth-mobile-header {
  display: none;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #f1f5f9;
}

@media (max-width: 991.98px) {
  .auth-mobile-header {
    display: flex;
  }
}

.auth-form-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.auth-form-subtitle {
  font-size: 0.92rem;
  color: #64748b;
  margin-bottom: 2rem;
}

/* Modern Input Controls */
.auth-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  margin-bottom: 0.4rem;
}

.auth-input-group {
  position: relative;
  display: flex;
  align-items: stretch;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.auth-input-group .input-group-text {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-right: none;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  color: #64748b;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.auth-input-group .form-control {
  border: 1.5px solid #e2e8f0;
  border-left: none;
  background: #f8fafc;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: #0f172a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-input-group .form-control:not(:last-child) {
  border-right: none;
}

.auth-input-group .form-control:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.auth-input-group .btn-reveal-pass {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-left: none;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  color: #94a3b8;
  padding: 0 0.85rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.auth-input-group .btn-reveal-pass:hover {
  color: var(--auth-primary);
}

.auth-input-group:focus-within {
  box-shadow: 0 0 0 4px var(--auth-primary-glow);
  border-radius: 12px;
}

.auth-input-group:focus-within .input-group-text,
.auth-input-group:focus-within .form-control,
.auth-input-group:focus-within .btn-reveal-pass {
  border-color: var(--auth-primary);
  background: #ffffff;
}

.auth-input-group:focus-within .input-group-text {
  color: var(--auth-primary);
}

/* Primary Submit Buttons */
.btn-auth-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 0.85rem 1.5rem;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.btn-auth-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 25px -5px rgba(37, 99, 235, 0.5);
  color: #ffffff;
}

.btn-auth-primary:active {
  transform: translateY(0);
}

/* Auth Footer & DPDP Compliance bar */
.auth-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f1f5f9;
  text-align: center;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #64748b;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.auth-back-link:hover {
  color: var(--auth-primary);
}

.auth-dpdp-links {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.78rem;
  color: #94a3b8;
}

.auth-dpdp-links a,
.auth-dpdp-links button {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

.auth-dpdp-links a:hover,
.auth-dpdp-links button:hover {
  color: var(--auth-primary);
}

/* OTP Code Input Boxes */
.auth-otp-input {
  letter-spacing: 12px;
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
  color: #0f172a;
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

/* Mobile & Small Screen Responsive System */
@media (max-width: 767.98px) {
  body.auth-body {
    padding: 1.25rem 0.85rem;
    align-items: flex-start;
  }
  .auth-card-wrapper {
    margin: 1rem auto;
    border-radius: 20px;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.4);
  }
  .auth-form-column {
    padding: 2.25rem 1.5rem;
  }
}

@media (max-width: 575.98px) {
  body.auth-body {
    padding: 0.85rem 0.65rem;
  }
  .auth-card-wrapper {
    margin: 0.5rem auto;
    border-radius: 16px;
  }
  .auth-form-column {
    padding: 1.75rem 1.15rem;
  }
  .auth-form-title {
    font-size: 1.45rem;
  }
  .auth-form-subtitle {
    font-size: 0.85rem;
  }
  .auth-form-column input.form-control {
    min-height: 48px;
    font-size: 16px !important; /* Prevents auto-zoom in iOS Safari */
  }
  .btn-auth-primary {
    min-height: 48px;
    font-size: 1rem;
    width: 100%;
  }
  .auth-otp-input {
    letter-spacing: 8px;
    font-size: 1.4rem;
    padding: 0.65rem 0.5rem;
  }
}

