/* ═══════════════════════════════════════════════════════════
   PropClean — Auth Page Shared Styles
   Used by: login.php, reset-password.php
   ═══════════════════════════════════════════════════════════
   Class conventions:
     .auth-layout  — full-height flex wrapper
     .auth-visual  — left visual panel (hidden on mobile)
     .auth-panel   — right form panel
     .auth-orb     — decorative background circles
     .auth-logo    — logo block inside left panel
     .auth-form-*  — shared form element styles
   ═══════════════════════════════════════════════════════════ */

html, body { height: 100%; overflow: hidden; }
body { display: flex; align-items: stretch; }

/* ── Left Visual Panel ─────────────────────────────────── */
.auth-visual {
  flex: 1; display: none; flex-direction: column; justify-content: space-between;
  padding: 56px 52px; position: relative; overflow: hidden;
  background: linear-gradient(155deg, #060e18 0%, #0d1b2a 45%, #1d6fa4 100%);
}
@media (min-width: 768px) { .auth-visual { display: flex; } }

/* Decorative orbs */
.auth-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.auth-orb1 { width: 480px; height: 480px; background: radial-gradient(circle, rgba(29,111,164,.22), transparent 65%); top: -80px; right: -120px; }
.auth-orb2 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(232,184,75,.10), transparent 65%); bottom: -60px; left: -60px; }
.auth-orb3 { width: 160px; height: 160px; background: radial-gradient(circle, rgba(255,255,255,.05), transparent 65%); top: 45%; left: 25%; }

/* Logo in left panel */
.auth-logo { display: flex; align-items: center; gap: 14px; position: relative; z-index: 2; }
.auth-logo img { width: 52px; height: 52px; object-fit: contain; border-radius: 12px; filter: drop-shadow(0 4px 16px rgba(0,0,0,.5)); }
.auth-logo-name { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: #fff; letter-spacing: -.3px; }
.auth-logo-name em { color: #e8b84b; font-style: normal; }

/* Body content in left panel */
.auth-body { position: relative; z-index: 2; }
.auth-headline { font-family: 'Playfair Display', serif; font-size: clamp(28px, 3.5vw, 42px); font-weight: 700; color: #fff; line-height: 1.12; margin-bottom: 14px; }
.auth-headline em { color: #e8b84b; font-style: normal; display: block; }
.auth-desc { font-size: 15px; color: rgba(255,255,255,.58); line-height: 1.7; max-width: 320px; margin-bottom: 36px; }

/* Feature list */
.auth-features { display: flex; flex-direction: column; gap: 14px; }
.auth-feat { display: flex; align-items: center; gap: 14px; }
.auth-feat-dot { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.auth-feat-txt { font-size: 14px; color: rgba(255,255,255,.75); font-weight: 500; line-height: 1.4; }

/* Footer of left panel */
.auth-foot { position: relative; z-index: 2; font-size: 11px; color: rgba(255,255,255,.25); letter-spacing: .3px; }

/* ── Right Form Panel ──────────────────────────────────── */
.auth-panel {
  width: 100%; max-width: 460px; min-height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 28px; background: #ffffff; overflow-y: auto;
}
[data-theme="dark"] .auth-panel { background: #111827; }

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

/* Mobile-only logo (hidden on desktop where left panel is visible) */
.auth-mob-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; justify-content: center; }
.auth-mob-logo img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; }
.auth-mob-logo span { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--t900); }
@media (min-width: 768px) { .auth-mob-logo { display: none; } }

/* Form title & subtitle */
.auth-title { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; color: var(--t900); margin-bottom: 6px; }
.auth-sub   { font-size: 14px; color: var(--t400); margin-bottom: 32px; line-height: 1.5; }
[data-theme="dark"] .auth-title { color: #f9fafb; }
[data-theme="dark"] .auth-sub   { color: #9ca3af; }

/* Input fields */
.auth-inp { position: relative; margin-bottom: 14px; }
.auth-inp .inp-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 17px; pointer-events: none; z-index: 1; }
.auth-inp input {
  width: 100%; padding: 14px 14px 14px 44px;
  background: var(--surface2); border: 1.5px solid var(--bdr);
  border-radius: 14px; font-family: 'DM Sans', sans-serif; font-size: 15px;
  color: var(--t900); outline: none; transition: border-color .18s, background .18s;
  -webkit-appearance: none;
}
.auth-inp input:focus { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 3px rgba(29,111,164,.1); }
[data-theme="dark"] .auth-inp input { background: #1f2937; border-color: #374151; color: #f9fafb; }
[data-theme="dark"] .auth-inp input:focus { background: #1f2937; border-color: #1d6fa4; }

/* Submit button — base style; company color is injected via PHP inline style */
.auth-btn {
  width: 100%; padding: 16px; border: none; border-radius: 16px; cursor: pointer;
  background: linear-gradient(135deg, #0d1b2a, #1d6fa4);
  color: #fff; font-family: 'DM Sans', sans-serif;
  font-size: 16px; font-weight: 600; letter-spacing: .2px;
  transition: all .2s; box-shadow: 0 4px 20px rgba(29,111,164,.35);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.auth-btn:hover   { box-shadow: 0 6px 28px rgba(29,111,164,.5); transform: translateY(-1px); }
.auth-btn:active  { transform: scale(.97); }

/* Error & Success states */
.auth-err { display: none; background: rgba(224,82,82,.1); border: 1px solid rgba(224,82,82,.25); border-radius: 12px; padding: 12px 14px; font-size: 13px; color: #e05252; margin-bottom: 14px; align-items: center; gap: 8px; }
.auth-ok  { background: rgba(29,111,164,.08); border: 1px solid rgba(29,111,164,.2); border-radius: 12px; padding: 14px; font-size: 14px; color: #1d6fa4; margin-bottom: 14px; line-height: 1.6; }

/* Language switcher */
.auth-langs { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.auth-lang  {
  background: var(--surface2); border: 1.5px solid var(--bdr);
  border-radius: 99px; padding: 6px 14px; font-size: 12px; font-weight: 500;
  color: var(--t600); cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all .15s;
}
.auth-lang.active, .auth-lang:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
[data-theme="dark"] .auth-lang { background: #1f2937; border-color: #374151; color: #d1d5db; }

.auth-back { text-align: center; margin-top: 14px; }
.auth-back a { font-size: 13px; color: var(--t400); transition: color .15s; }
.auth-back a:hover { color: var(--primary); }
[data-theme="dark"] .auth-back a { color: #9ca3af; }

/* Forgot password link */
.auth-forgot { text-align: right; margin-top: -6px; margin-bottom: 22px; }
.auth-forgot a { font-size: 12px; color: var(--primary); font-weight: 500; }

/* Spinner */
@keyframes auth-spin { to { transform: rotate(360deg); } }
.auth-spin { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: auth-spin .7s linear infinite; }
