/* ═══════════════════════════════════════════════════════════
   HOME CARE CIRCLE — Auth Pages Stylesheet
   ═══════════════════════════════════════════════════════════ */

.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ─── Auth Left Panel ──────────────────────────────────────── */
.auth-left {
  background: var(--gradient-hero);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  overflow: hidden;
}

.auth-left-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 30px 30px;
}

.auth-left-shape {
  position: absolute;
  border-radius: 50%;
  opacity: .07;
}

.auth-left-shape-1 {
  width: 400px; height: 400px;
  background: var(--accent);
  top: -150px; right: -100px;
}

.auth-left-shape-2 {
  width: 300px; height: 300px;
  background: var(--secondary-light);
  bottom: -100px; left: -80px;
}

.auth-left-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: .875rem;
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 3rem;
}

.auth-brand-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  backdrop-filter: blur(8px);
}

.auth-tagline {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -.02em;
}

.auth-tagline .highlight {
  background: linear-gradient(90deg, #34d399, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-tagline-sub {
  font-size: .95rem;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
  max-width: 360px;
  margin-bottom: 2.5rem;
}

.auth-features { display: flex; flex-direction: column; gap: .875rem; }

.auth-feature {
  display: flex;
  align-items: center;
  gap: .875rem;
  color: rgba(255,255,255,.85);
  font-size: .9rem;
}

.auth-feature-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
  color: var(--secondary-light);
}

/* ─── Auth Right Panel ─────────────────────────────────────── */
.auth-right {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}

.auth-box {
  width: 100%;
  max-width: 460px;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h2 {
  font-size: 1.75rem;
  margin-bottom: .35rem;
  color: var(--dark);
}

.auth-header p {
  color: var(--gray-500);
  font-size: .9rem;
}

/* ─── Social Auth ──────────────────────────────────────────── */
.social-auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 1.5rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  padding: .75rem;
  border: 2px solid var(--gray-200, #e5e7eb);
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 600;
  color: var(--dark);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
}

.social-btn:hover { border-color: var(--gray-300); box-shadow: var(--shadow-sm); }
.social-btn img { width: 20px; height: 20px; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--gray-400, #9ca3af);
  font-size: .8rem;
  margin-bottom: 1.5rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200, #e5e7eb);
}

/* ─── Auth Form ────────────────────────────────────────────── */
.auth-form .form-group { margin-bottom: 1.125rem; }

.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  color: var(--gray-500);
  font-size: .9rem;
  transition: var(--transition);
}

.password-toggle:hover { color: var(--primary); }

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  font-size: .85rem;
}

.auth-options a { color: var(--primary-light); font-weight: 500; }
.auth-options a:hover { color: var(--primary); }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  font-size: .85rem;
  color: var(--gray-500);
}

.checkbox-label input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.auth-submit {
  width: 100%;
  padding: .95rem;
  border-radius: var(--radius-full);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.auth-footer {
  text-align: center;
  font-size: .875rem;
  color: var(--gray-500);
}

.auth-footer a { color: var(--primary-light); font-weight: 600; }
.auth-footer a:hover { color: var(--primary); }

/* ─── Role Selector ────────────────────────────────────────── */
.role-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 1.5rem;
}

.role-card {
  border: 2px solid var(--gray-200, #e5e7eb);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.role-card:hover { border-color: var(--primary-light); }

.role-card.selected {
  border-color: var(--primary);
  background: rgba(30,64,175,.05);
}

.role-card.selected::after {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: .5rem; right: .625rem;
  color: var(--primary);
  font-size: .85rem;
}

.role-card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto .75rem;
  transition: var(--transition);
}

.role-card h4 { font-size: .9rem; margin-bottom: .2rem; }
.role-card p  { font-size: .75rem; color: var(--gray-500); }

/* ─── Steps Indicator ──────────────────────────────────────── */
.steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 2rem;
}

.step-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gray-200, #e5e7eb);
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  font-family: var(--font-primary);
  transition: var(--transition);
}

.step-dot.active   { background: var(--primary); color: var(--white); box-shadow: var(--shadow-blue); }
.step-dot.done     { background: var(--success); color: var(--white); }
.step-line         { flex: 1; max-width: 60px; height: 2px; background: var(--gray-200, #e5e7eb); transition: var(--transition); }
.step-line.done    { background: var(--success); }

/* ─── File Upload ──────────────────────────────────────────── */
.file-upload-area {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.file-upload-area:hover,
.file-upload-area.dragover {
  border-color: var(--primary-light);
  background: rgba(59,130,246,.04);
}

.file-upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-upload-icon {
  font-size: 2rem;
  color: var(--primary-light);
  margin-bottom: .75rem;
}

.file-upload-area h4 { font-size: .9rem; margin-bottom: .35rem; }
.file-upload-area p  { font-size: .8rem; color: var(--gray-500); }

/* ─── OTP Input ────────────────────────────────────────────── */
.otp-inputs {
  display: flex;
  gap: .75rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.otp-input {
  width: 52px; height: 60px;
  border: 2px solid var(--gray-200, #e5e7eb);
  border-radius: var(--radius);
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-primary);
  color: var(--dark);
  outline: none;
  transition: var(--transition);
}

.otp-input:focus { border-color: var(--primary-light); box-shadow: 0 0 0 4px rgba(59,130,246,.1); }

/* ─── Responsive Auth ──────────────────────────────────────── */
@media (max-width: 768px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-left   { display: none; }
  .auth-right  { min-height: 100vh; }
  .role-selector { grid-template-columns: 1fr; }
  .social-auth { grid-template-columns: 1fr; }
}
