/* ============================================================
   login.css  —  Aarkay Auth Pages Design System
   Covers: sign-in, sign-up, forgot-password, reset-password
   ============================================================ */

/* ── Google Fonts ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ── CSS Variables (Aarkay Design Tokens) ──────────────────── */
:root {
  --auth-navy: #0e2a47;
  --auth-blue: #1f6feb;
  --auth-blue-light: rgba(31, 111, 235, 0.10);
  --auth-blue-mid: rgba(31, 111, 235, 0.25);
  --auth-bg: #f0f4f8;
  --auth-white: #ffffff;
  --auth-border: #e2e8f0;
  --auth-text: #111827;
  --auth-muted: #6b7280;
  --auth-danger: #ef4444;
  --auth-success: #16a34a;
  --auth-radius-sm: 10px;
  --auth-radius-md: 16px;
  --auth-shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
  --auth-shadow-md: 0 8px 32px rgba(14, 42, 71, 0.10), 0 2px 8px rgba(0, 0, 0, 0.05);
  --auth-shadow-btn: 0 8px 20px rgba(14, 42, 71, 0.15);
  --auth-shadow-hover: 0 12px 28px rgba(31, 111, 235, 0.28);
  --auth-font-body: 'Inter', sans-serif;
  --auth-font-head: 'Barlow Condensed', sans-serif;
}

/* ── Split Layout Root ─────────────────────────────────────── */

/* Override Bagisto's bg-white on the main element for auth pages */
.split-layout-root,
.split-layout-root~*,
body:has(.split-layout-root) #main,
body:has(.split-layout-root) main {
  background: transparent !important;
}

.split-layout-root {
  display: flex;
  min-height: 100vh;
  overflow: hidden;
  font-family: var(--auth-font-body);
}

/* ── Left Column (image side) ──────────────────────────────── */
.split-left-col {
  position: relative;
  flex: 1 1 70%;
  overflow: hidden;
}

.split-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dark gradient overlay — left-to-right fade */
.split-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.20) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.60));
  pointer-events: none;
  z-index: 2;
}

/* Text overlay on image */
.split-text {
  position: absolute;
  bottom: 64px;
  left: 60px;
  max-width: 780px;
  z-index: 10;
}

.split-text h2 {
  font-family: var(--auth-font-head);
  font-size: 62px;
  line-height: 1.05;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  margin-bottom: 14px;
}

.split-text .split-subtext {
  font-family: var(--auth-font-body);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  letter-spacing: 0.8px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  padding-left: 20px;
  position: relative;
}

.split-text .split-subtext::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 2px;
  background: #ffffff;
}

.split-text .split-tagline {
  font-family: var(--auth-font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 10px;
  padding-left: 0;
}

/* ── Right Column (form side) ──────────────────────────────── */
.split-right-col {
  flex: 0 0 30%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #c8d6e8 !important;
  background-image: radial-gradient(ellipse at 60% 40%, #dbe9f8 0%, #b8ccdf 100%) !important;
  min-height: 100vh;
  overflow-y: auto;
  padding: 40px 24px;
}

/* Fade-in animation for form column */
@keyframes auth-fade-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-flow-wrapper {
  width: 100%;
  max-width: 460px;
  animation: auth-fade-in 0.45s ease both;
}

/* ── Back Navigation Link ──────────────────────────────────── */
.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
  margin-bottom: 24px;
}

.auth-back-link:hover {
  color: var(--auth-blue);
  gap: 10px;
}

.auth-back-link svg {
  stroke: currentColor;
  stroke-width: 2.5px;
  transition: transform 0.2s ease;
}

.auth-back-link:hover svg {
  transform: translateX(-3px);
}

/* ── Card Container ────────────────────────────────────────── */
.login-inner-card {
  background: #ffffff !important;
  border-radius: var(--auth-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(14, 42, 71, 0.14),
    0 20px 60px rgba(14, 42, 71, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.06);
  padding: 36px 32px 32px;
  width: 100%;
}

/* ── Logo Area ─────────────────────────────────────────────── */
.auth-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.auth-logo-wrap img {
  height: 34px;
  width: auto;
}

/* ── Card Heading & Subtext ────────────────────────────────── */
.auth-heading {
  font-family: var(--auth-font-body);
  font-size: 24px;
  font-weight: 500;
  color: var(--auth-text);
  letter-spacing: 0.3px;
  margin: 0 0 6px;
  text-align: center;
}

.auth-subtext {
  font-size: 14px;
  color: var(--auth-muted);
  text-align: center;
  margin: 0 0 28px;
  line-height: 1.55;
}

/* ── Premium Form Inputs ───────────────────────────────────── */
.premium-login-form input[type="text"],
.premium-login-form input[type="email"],
.premium-login-form input[type="password"] {
  background-color: var(--auth-white) !important;
  border: 1.5px solid var(--auth-border) !important;
  height: 48px !important;
  border-radius: var(--auth-radius-sm) !important;
  padding: 0 16px !important;
  font-size: 14px !important;
  font-family: var(--auth-font-body) !important;
  color: var(--auth-text) !important;
  width: 100% !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box;
}

.premium-login-form input:focus {
  border-color: var(--auth-blue) !important;
  box-shadow: 0 0 0 4px var(--auth-blue-light) !important;
  outline: none !important;
}

/* ── Form Labels ───────────────────────────────────────────── */
.premium-login-form label,
.premium-login-form x-shop-form-control-group-label,
.premium-login-form .label {
  display: block !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--auth-muted) !important;
}

/* Helper text below email input */
.auth-helper-text {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 6px;
  line-height: 1.45;
}

/* ── Error Messages ────────────────────────────────────────── */
.premium-login-form .text-danger,
.premium-login-form .control-error,
.premium-login-form [class*="error"] {
  position: relative !important;
  display: block !important;
  margin-top: 6px !important;
  font-size: 12px !important;
  color: var(--auth-danger) !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
}

/* ── Submit Button ─────────────────────────────────────────── */
.login-submit-btn {
  width: 100%;
  height: 50px;
  background: var(--auth-navy);
  color: #ffffff;
  border: none;
  border-radius: var(--auth-radius-sm);
  font-weight: 600;
  font-size: 15px;
  font-family: var(--auth-font-body);
  box-shadow: var(--auth-shadow-btn);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.3px;
}

.login-submit-btn:hover {
  transform: translateY(-2px);
  background: #0b1f36;
  box-shadow: var(--auth-shadow-hover);
}

.login-submit-btn:active {
  transform: translateY(0px);
}

/* Button loading spinner */
.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.login-submit-btn.loading .btn-spinner {
  display: inline-block;
}

.login-submit-btn.loading .btn-label {
  opacity: 0.7;
}

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

/* ── Social Buttons ────────────────────────────────────────── */
.form-social-btn:hover {
  border-color: var(--auth-blue) !important;
  background-color: #f8fafc !important;
  transform: translateY(-1px);
}

/* ── Inline State: Success & Error banners ─────────────────── */
.auth-alert {
  display: none;
  align-items: flex-start;
  gap: 10px;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.5;
  animation: auth-fade-in 0.3s ease both;
}

.auth-alert.show {
  display: flex;
}

.auth-alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.auth-alert-success svg {
  color: #16a34a;
  flex-shrink: 0;
  margin-top: 2px;
}

.auth-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.auth-alert-error svg {
  color: #dc2626;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Bottom Footer ─────────────────────────────────────────── */
.auth-footer-text {
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
  margin-top: 24px;
}

/* ── Divider ───────────────────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
}

.auth-divider-line {
  flex: 1;
  border-bottom: 1px solid var(--auth-border);
}

.auth-divider-text {
  font-size: 11px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
  font-weight: 500;
}

/* ── Link styles ───────────────────────────────────────────── */
.auth-link {
  color: var(--auth-blue);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .split-left-col {
    display: none;
  }

  .split-right-col {
    flex: 0 0 100%;
    padding: 32px 20px;
  }

  .auth-flow-wrapper {
    max-width: 100%;
  }

  .login-inner-card {
    padding: 28px 20px 24px;
  }

  .split-text h2 {
    font-size: 44px;
  }
}

@media (max-width: 480px) {
  .login-inner-card {
    border-radius: 12px;
    padding: 24px 16px 20px;
  }
}
.cursor-pointer{margin-bottom: 0 !important;}