/* ============================================================
   MonecoleTech — Auth Pages Stylesheet
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-visual {
  background: linear-gradient(145deg, #1E1B4B 0%, #312E81 35%, #4C1D95 70%, #2E1065 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  overflow: hidden;
}

.auth-visual__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.auth-visual__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.auth-visual__blob--1 {
  width: 400px; height: 400px;
  background: rgba(139,92,246,.3);
  top: -100px; right: -100px;
}

.auth-visual__blob--2 {
  width: 300px; height: 300px;
  background: rgba(59,130,246,.25);
  bottom: 100px; left: -50px;
}

.auth-visual__header {
  position: relative; z-index: 2;
}

.auth-visual__brand {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; margin-bottom: 3rem;
}

.auth-visual__brand-name {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.5rem;
  color: white;
}

.auth-visual__content {
  position: relative; z-index: 2;
  flex: 1;
  display: flex; align-items: center;
}

.auth-visual__text h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.auth-visual__text p {
  color: rgba(255,255,255,.7);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.auth-visual__features {
  display: flex; flex-direction: column; gap: 0.875rem;
}

.auth-visual__feature {
  display: flex; align-items: center; gap: 0.875rem;
  color: rgba(255,255,255,.85);
  font-size: 0.9375rem;
}

.auth-visual__feature-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.auth-visual__testimonial {
  position: relative; z-index: 2;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-xl);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
}

.auth-visual__testimonial p {
  color: rgba(255,255,255,.85);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.auth-visual__testimonial-author {
  display: flex; align-items: center; gap: 0.75rem;
}

.auth-visual__testimonial-author img {
  width: 40px; height: 40px; border-radius: 99px; object-fit: cover;
  border: 2px solid rgba(255,255,255,.3);
}

.auth-visual__testimonial-name { font-weight: 600; color: white; font-size: 0.875rem; }
.auth-visual__testimonial-role { color: rgba(255,255,255,.6); font-size: 0.8rem; }

/* ============================================================
   AUTH FORM PANEL
   ============================================================ */
.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 4rem;
  background: var(--bg-primary);
  overflow-y: auto;
}

.auth-form-wrap {
  width: 100%;
  max-width: 440px;
}

.auth-form-wrap__header { margin-bottom: 2.5rem; }

.auth-form-wrap__back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--text-muted); font-size: 0.875rem;
  text-decoration: none; margin-bottom: 2rem;
  transition: color var(--t-fast);
}

.auth-form-wrap__back:hover { color: var(--primary); }

.auth-form-wrap__title {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.auth-form-wrap__subtitle { color: var(--text-secondary); }
.auth-form-wrap__subtitle a { color: var(--primary); font-weight: 500; }

/* ============================================================
   OAUTH BUTTONS
   ============================================================ */
.oauth-btns {
  display: flex; gap: 0.75rem; margin-bottom: 1.75rem;
}

.oauth-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-color);
  border-radius: var(--r-lg);
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-primary);
  cursor: pointer; text-decoration: none;
  transition: all var(--t-fast);
}

.oauth-btn:hover { border-color: var(--primary); background: var(--primary-lt); }

.oauth-btn img { width: 18px; height: 18px; }

/* ============================================================
   DIVIDER
   ============================================================ */
.auth-divider {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.75rem;
}

.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1;
  height: 1px; background: var(--border-color);
}

.auth-divider span { font-size: 0.8125rem; color: var(--text-muted); white-space: nowrap; }

/* ============================================================
   PASSWORD STRENGTH
   ============================================================ */
.password-strength {
  margin-top: 0.5rem;
}

.password-strength__bar {
  height: 4px;
  border-radius: 99px;
  background: var(--bg-tertiary);
  overflow: hidden;
  margin-bottom: 0.375rem;
}

.password-strength__fill {
  height: 100%;
  border-radius: 99px;
  transition: all var(--t-base);
  width: 0%;
}

.password-strength__fill--weak   { background: var(--danger);  width: 33%; }
.password-strength__fill--fair   { background: var(--warning); width: 66%; }
.password-strength__fill--strong { background: var(--success); width: 100%; }

.password-strength__label { font-size: 0.75rem; color: var(--text-muted); }

/* ============================================================
   OTP INPUT
   ============================================================ */
.otp-inputs {
  display: flex; gap: 0.75rem; justify-content: center;
  margin: 1.5rem 0;
}

.otp-inputs input {
  width: 52px; height: 60px;
  text-align: center;
  font-size: 1.5rem; font-weight: 700;
  border: 1.5px solid var(--border-color);
  border-radius: var(--r-lg);
  outline: none;
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: all var(--t-fast);
  font-family: var(--font-display);
}

.otp-inputs input:focus {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: var(--shadow-glow);
}

/* ============================================================
   ROLE SELECTOR
   ============================================================ */
.role-selector {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem; margin-bottom: 1.25rem;
}

.role-option { display: none; }

.role-option + label {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 1.25rem 1rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all var(--t-fast);
  text-align: center;
}

.role-option + label .role-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  background: var(--bg-secondary);
  color: var(--text-muted);
  transition: all var(--t-fast);
}

.role-option + label .role-name {
  font-weight: 600; font-size: 0.875rem;
  color: var(--text-secondary);
}

.role-option + label:hover {
  border-color: var(--primary);
  background: var(--primary-lt);
}

.role-option:checked + label {
  border-color: var(--primary);
  background: var(--primary-lt);
}

.role-option:checked + label .role-icon {
  background: var(--primary);
  color: white;
}

.role-option:checked + label .role-name { color: var(--primary); }

/* ============================================================
   AUTH TERMS
   ============================================================ */
.auth-terms {
  font-size: 0.8125rem; color: var(--text-muted);
  text-align: center;
  margin-top: 1.25rem;
}

.auth-terms a { color: var(--primary); }

/* ============================================================
   RESPONSIVE AUTH
   ============================================================ */
@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form-panel { padding: 2.5rem 2rem; min-height: 100vh; }
}

@media (max-width: 480px) {
  .auth-form-panel { padding: 2rem 1.25rem; }
  .otp-inputs input { width: 44px; height: 52px; font-size: 1.25rem; }
  .role-selector { grid-template-columns: 1fr 1fr; }
}
