/* ============================================================
   BOUTIQUE-LINK — auth.css
   Styles Login + Register
   ============================================================ */

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ---- LEFT PANEL ---- */
.auth-visual {
  background: linear-gradient(145deg, var(--charcoal) 0%, #2d1a0e 50%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px;
  color: var(--white);
}

.auth-visual::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193,68,14,.4) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}
.auth-visual::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,160,23,.25) 0%, transparent 70%);
  bottom: -80px;
  left: -80px;
}

.auth-visual-content { position: relative; z-index: 1; text-align: center; }

.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
}
.auth-logo-icon {
  width: 52px;
  height: 52px;
  background: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(193,68,14,.5);
}
.auth-logo-icon-text {
  width: 52px;
  height: 52px;
  background: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(193,68,14,.5);
}
.auth-logo-text { font-family: var(--font-title); font-size: 1.6rem; font-weight: 700; color: var(--white); }
.auth-logo-sub { font-size: .75rem; color: var(--gold); letter-spacing: .1em; text-transform: uppercase; }

.auth-tagline { font-family: var(--font-title); font-size: 1.8rem; font-weight: 700; line-height: 1.3; margin-bottom: 16px; }
.auth-tagline span { color: var(--gold); }
.auth-desc { font-size: .9rem; color: rgba(255,255,255,.65); max-width: 320px; margin: 0 auto 40px; }

.auth-features { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.auth-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .88rem;
  color: rgba(255,255,255,.8);
}
.auth-feature-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.auth-feature-icon-text {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  flex-shrink: 0;
}

/* ---- RIGHT PANEL ---- */
.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: var(--cream);
}

.auth-form-box {
  width: 100%;
  max-width: 420px;
}

.auth-form-header { margin-bottom: 32px; }
.auth-form-header h1 { font-size: 2rem; margin-bottom: 8px; }
.auth-form-header p { color: var(--gray-500); font-size: .92rem; }

/* ---- ROLE TOGGLE ---- */
.role-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.role-option { display: none; }
.role-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 14px;
  cursor: pointer;
  background: var(--white);
  transition: var(--transition);
  font-size: .88rem;
  font-weight: 500;
  color: var(--gray-500);
  border-right: 1px solid var(--gray-300);
}
.role-label:last-of-type { border-right: none; }
.role-label .emoji { font-size: 1.3rem; }
.role-label .role-letter { 
  font-size: 1.2rem; 
  font-weight: 700; 
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
}
.role-option:checked + .role-label {
  background: var(--primary);
  color: var(--white);
}

/* ---- INPUT PASSWORD TOGGLE ---- */
.input-group {
  position: relative;
}
.input-group .form-control { padding-right: 44px; }
.input-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  font-size: 1rem;
  padding: 4px;
  transition: var(--transition);
}
.input-toggle:hover { color: var(--primary); }

/* ---- DIVIDER AUTH ---- */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--gray-400);
  font-size: .82rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--gray-300);
}

/* ---- LINKS ---- */
.auth-link { color: var(--primary); font-weight: 500; transition: var(--transition); }
.auth-link:hover { color: var(--primary-dark); text-decoration: underline; }
.auth-footer-text { text-align: center; margin-top: 24px; font-size: .88rem; color: var(--gray-500); }

/* ---- LOADING STATE ---- */
.btn-loading { position: relative; pointer-events: none; }
.btn-loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin-left: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- ERROR MESSAGE ---- */
.error-msg {
  background: #FEE2E2;
  color: #991B1B;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: .87rem;
  margin-bottom: 16px;
  display: none;
  align-items: center;
  gap: 8px;
}
.error-msg.show { display: flex; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form-panel { padding: 32px 20px; }
}
