/*
 * Atlasia Auth CSS — Split-panel login/register layout.
 * Ported verbatim from globals.css auth section.
 */

:root {
  --font-sans: "Poppins", system-ui, -apple-system, sans-serif;
  --color-accent: #7C3AED;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  min-height: 100vh;
  background: #0B0B12;
}

/* ── Root split container ── */
.auth-split {
  display: flex;
  min-height: 100vh;
  background: #0B0B12;
}

/* ── LEFT PANEL ── */
.auth-left {
  position: relative;
  width: 45%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.auth-left-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/morocco-bg.jpg");
  background-size: cover;
  background-position: center;
}

.auth-left-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.40) 0%, rgba(20,5,50,0.35) 50%, rgba(0,0,0,0.60) 100%);
}

.auth-left-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 100vh;
  padding: 40px 40px 48px;
}

.auth-left-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-left-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.auth-left-logo-label {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.auth-left-copy { max-width: 380px; }

.auth-left-tagline {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.auth-left-headline {
  font-size: 26px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.auth-left-subtext {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

/* ── RIGHT PANEL ── */
.auth-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 40px 80px;
  background: #ffffff;
  overflow-y: auto;
}

.auth-right-inner { width: 100%; max-width: 440px; }

.auth-right-footer {
  margin-top: 40px;
  text-align: center;
  font-size: 12px;
  color: #94A3B8;
}

/* ── Form styles ── */
.auth-form-title {
  font-size: 28px;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.auth-form-subtitle {
  font-size: 14.5px;
  color: #4B5563;
  margin-bottom: 32px;
  line-height: 1.5;
}

.auth-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #1E293B;
  margin-bottom: 7px;
  letter-spacing: -0.01em;
}

.auth-input {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  color: #0F172A;
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 12px 14px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.auth-input:focus {
  outline: none;
  border-color: #7C3AED;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}
.auth-input::placeholder { color: #94A3B8; }

.auth-field { margin-bottom: 20px; }

.auth-btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 50%, #6D28D9 100%);
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 16px;
  letter-spacing: -0.01em;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 4px 14px rgba(124,58,237,0.35);
  transition: all 0.2s ease;
  cursor: pointer;
  margin-top: 4px;
}
.auth-btn-primary:hover {
  background: linear-gradient(135deg, #9B6FF7 0%, #8B5CF6 50%, #7C3AED 100%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12), 0 6px 20px rgba(124,58,237,0.45);
  transform: translateY(-1px);
}
.auth-btn-primary:active { transform: translateY(0); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
}
.auth-divider-line { flex: 1; height: 1px; background: #E2E8F0; }
.auth-divider-text { font-size: 12.5px; color: #94A3B8; }

.auth-footer-text { text-align: center; font-size: 13.5px; color: #4B5563; margin-top: 24px; }
.auth-footer-link { color: #7C3AED; font-weight: 600; text-decoration: none; }
.auth-footer-link:hover { color: #5B21B6; text-decoration: underline; }

.auth-error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 20px;
}

.auth-success {
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 20px;
}

.auth-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.auth-checkbox-row label { font-size: 13.5px; color: #4B5563; cursor: pointer; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .auth-left { width: 40%; }
  .auth-left-headline { font-size: 22px; }
}

@media (max-width: 768px) {
  .auth-split { flex-direction: column; }
  .auth-left { width: 100%; min-height: 280px; max-height: 320px; }
  .auth-left-content { padding: 24px 24px 28px; }
  .auth-left-headline { font-size: 20px; }
  .auth-left-subtext { display: none; }
  .auth-right { padding: 32px 20px 80px; }
  .auth-right-inner { max-width: 100%; }
}
