/* =========================================
   OZEE CAKES — Auth Pages CSS
   assets/css/auth.css
   ========================================= */

.auth-page { margin: 0; background: #F7FAFF; }

.auth-layout {
  display: flex; min-height: 100vh;
}

/* ---- LEFT BRAND PANEL ---- */
.auth-brand {
  width: 420px; flex-shrink: 0;
  background: linear-gradient(160deg, #0D2461 0%, #0047AB 55%, #1565C0 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 3rem 2.5rem;
  position: relative; overflow: hidden;
}
.auth-brand::before {
  content: '';
  position: absolute; top: -120px; right: -120px;
  width: 500px; height: 500px; border-radius: 50%;
  border: 2px solid rgba(201,162,39,0.25);
}
.auth-brand::after {
  content: '';
  position: absolute; bottom: -80px; left: -80px;
  width: 350px; height: 350px; border-radius: 50%;
  border: 1px solid rgba(201,162,39,0.15);
}
.auth-brand-inner { position: relative; z-index: 1; }
.auth-logo img { width: 90px; height: 90px; border-radius: 50%; border: 3px solid rgba(201,162,39,0.5); margin-bottom: 2rem; display: block; }
.auth-brand h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; font-weight: 400;
  color: white; line-height: 1.25; margin-bottom: 1rem;
}
.auth-brand h2 em { color: #C9A227; font-style: italic; }
.auth-brand p { color: rgba(255,255,255,0.75); font-size: 0.92rem; line-height: 1.7; margin-bottom: 2rem; }
.auth-perks { list-style: none; padding: 0; margin: 0; }
.auth-perks li {
  display: flex; align-items: center; gap: 0.7rem;
  color: rgba(255,255,255,0.85); font-size: 0.88rem;
  margin-bottom: 0.75rem;
}
.auth-perks li i { color: #C9A227; font-size: 0.9rem; }

/* ---- RIGHT FORM PANEL ---- */
.auth-panel {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.auth-box {
  background: white; border-radius: 20px;
  padding: 2.5rem; width: 100%; max-width: 480px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.07);
  border: 1px solid #E8E4DC;
}

/* ---- TABS ---- */
.auth-tabs {
  display: flex; border-bottom: 2px solid #EEE;
  margin-bottom: 2rem;
}
.auth-tab {
  flex: 1; padding: 0.75rem;
  background: none; border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem; font-weight: 500;
  color: #888; cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all 0.2s;
}
.auth-tab.active { color: #0047AB; border-bottom-color: #0047AB; }

/* ---- FORM ---- */
.auth-form-wrap h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem; font-weight: 400; color: #0D1B3E;
  margin-bottom: 0.25rem;
}
.auth-sub { font-size: 0.85rem; color: #888; margin-bottom: 1.5rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 500; color: #0D1B3E; margin-bottom: 0.4rem; }
.input-icon { position: relative; }
.input-icon > i {
  position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%);
  color: #8B9ABB; font-size: 0.85rem; pointer-events: none;
}
.input-icon input {
  width: 100%; padding: 0.8rem 1rem 0.8rem 2.5rem;
  border: 1.5px solid rgba(0,71,171,0.15);
  border-radius: 10px; font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; color: #0D1B3E; background: #F7FAFF; outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.input-icon input:focus { border-color: #0047AB; background: white; }
.toggle-pass {
  position: absolute; right: 0.8rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: #8B9ABB; font-size: 0.85rem;
}
.toggle-pass:hover { color: #0047AB; }

/* ---- BUTTON ---- */
.btn-auth {
  width: 100%; padding: 0.9rem;
  background: linear-gradient(135deg, #C9A227, #9A7A1A);
  color: #001F5B; border: none; border-radius: 12px;
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  margin-top: 0.5rem;
}
.btn-auth:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,162,39,0.4); }
.btn-auth:disabled { opacity: 0.6; transform: none; }
.btn-spinner {
  display: none; width: 16px; height: 16px;
  border: 2px solid rgba(0,30,80,0.3); border-top-color: #001F5B;
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
.btn-auth.loading span { display: none; }
.btn-auth.loading .btn-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- MESSAGES ---- */
.auth-msg {
  display: none; padding: 0.7rem 1rem;
  border-radius: 8px; font-size: 0.83rem; margin-bottom: 0.75rem;
}
.auth-msg.ok { background: #D1FAE5; color: #065F46; }
.auth-msg.err { background: #FEE2E2; color: #991B1B; }
.auth-switch { text-align: center; font-size: 0.83rem; color: #888; margin-top: 1.2rem; }
.auth-switch a { color: #0047AB; font-weight: 500; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.hidden { display: none !important; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .auth-brand { display: none; }
  .auth-panel { padding: 1.5rem 1rem; align-items: flex-start; padding-top: 3rem; }
  .auth-box { padding: 2rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
}
