/* Student auth — 2026 EdTech split layout */
:root {
  /* Aligned with homepage_v3 counseling brand */
  --primary: #0f3531;
  --primary-dark: #0a2f29;
  /* Clear mid-green for chips/tabs/rails — readable on cream */
  --primary-clear: #1f7a66;
  --primary-clear-dark: #165f50;
  --accent: #c9a227;
  --on-accent: #0c332c;
  --radius-card: 24px;
  --radius-input: 16px;
  --input-h: 56px;
  --font: 'Vazirmatn', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.auth-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  line-height: 1.6;
  transition: background 0.35s ease, color 0.35s ease;
}

/* Dark only — no theme switch on auth pages */
body.auth-page {
  color-scheme: dark;
  --surface: rgba(255, 255, 255, 0.12);
  --surface-border: rgba(255, 255, 255, 0.22);
  --text: #f8fafc;
  --text-muted: rgba(248, 250, 252, 0.72);
  --input-bg: rgba(15, 23, 42, 0.55);
  --input-border: rgba(148, 163, 184, 0.35);
  --shadow-card: 0 24px 48px rgba(0, 0, 0, 0.28), 0 8px 16px rgba(0, 0, 0, 0.12);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 60% at 85% 15%, rgba(201, 162, 39, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 85%, rgba(15, 53, 49, 0.45), transparent 50%),
    linear-gradient(145deg, #062722 0%, #0a2f29 38%, #0f3531 100%);
}

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

/* Hero (RTL: first column = right) */
.auth-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}

.auth-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 53, 49, 0.12), transparent 60%);
  pointer-events: none;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.auth-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.auth-brand span {
  font-weight: 700;
  font-size: 1.05rem;
}

.auth-hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 1rem;
  position: relative;
  z-index: 1;
}

.auth-hero .hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 32rem;
  margin: 0 0 2rem;
  position: relative;
  z-index: 1;
}

.hero-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.hero-features .check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #fff;
  box-shadow: 0 4px 12px rgba(10, 47, 41, 0.4);
}

/* Panel */
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.auth-panel-stack {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
}

.auth-choice-page .auth-panel-stack {
  max-width: min(640px, 100%);
}

.auth-back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  margin-inline-start: 0.15rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.auth-back:hover,
.auth-back:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  outline: none;
}

.auth-back-icon {
  flex-shrink: 0;
  opacity: 0.75;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  position: relative;
}

.auth-panel-stack > .auth-card {
  max-width: none;
}

.auth-card-title {
  text-align: center;
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.auth-card-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}

.auth-card--single .auth-form-panel {
  display: block;
}

.auth-alt-link {
  text-align: center;
  margin: 1.25rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.auth-alt-link a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-alt-link a:hover {
  color: var(--primary-clear);
  text-decoration: underline;
}

/* Segmented tabs */
.auth-tabs {
  display: flex;
  padding: 4px;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 14px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: 11px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

.auth-tab:hover { color: var(--text); }

.auth-tab.active {
  background: linear-gradient(135deg, var(--primary-clear), var(--primary-clear-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(31, 122, 102, 0.4);
}

.auth-form-panel { display: none; animation: authFadeIn 0.35s ease; }
.auth-form-panel.active { display: block; }

@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Outlined floating labels */
.field {
  margin-bottom: 1.15rem;
  position: relative;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.field-float {
  position: relative;
}

.field-float label {
  position: absolute;
  right: 0.85rem;
  top: calc(var(--input-h) / 2);
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  pointer-events: none;
  transition:
    top 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    font-size 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.2s ease;
  padding: 0 0.2rem;
  z-index: 4;
  line-height: 1.2;
  max-width: calc(100% - 2.5rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Label on top border */
.field-float.is-focused label,
.field-float.has-value label {
  top: 0;
  transform: translateY(-50%);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
}

.field-float.is-focused label {
  color: var(--accent);
}

.field-float.has-value:not(.is-focused) label {
  color: rgba(148, 163, 184, 0.95);
}

.field-float input,
.field-float select,
.auth-input {
  width: 100%;
  height: var(--input-h);
  padding: 0 1rem;
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius-input);
  background: var(--input-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s, padding 0.2s ease, color 0.2s ease;
}

/* Room for value when label floats */
.field-float.is-focused input,
.field-float.has-value input,
.field-float.is-focused select,
.field-float.has-value select {
  padding-top: 1.15rem;
  padding-bottom: 0.45rem;
}

.field-float select,
.auth-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-left: 2.25rem;
  color-scheme: dark;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 0.85rem center;
}

.field-float select option,
.auth-select option {
  background-color: #0f172a;
  color: #f8fafc;
}

/* Empty select: hide option text, label acts as placeholder */
.field-float:not(.has-value):not(.is-focused) select.auth-select {
  color: transparent;
}

.field-float.is-focused select.auth-select,
.field-float.has-value select.auth-select {
  color: var(--text);
}

.field-float input:focus,
.field-float select:focus,
.auth-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(10, 47, 41, 0.25);
  background: rgba(15, 23, 42, 0.82);
}

.field-float input.invalid,
.field-float select.invalid {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
}

.field-float.is-focused:has(input.invalid) label,
.field-float.has-value:has(input.invalid) label,
.field-float.is-focused:has(select.invalid) label,
.field-float.has-value:has(select.invalid) label {
  color: #f87171;
}

.field-float input.valid {
  border-color: #34d399;
}

.field-password.field-float input {
  padding-left: 2.75rem;
}

.field-password.field-float.is-focused input,
.field-password.field-float.has-value input {
  padding-left: 2.75rem;
}

.password-toggle {
  position: absolute;
  left: 0.75rem;
  top: calc(var(--input-h) / 2);
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  z-index: 3;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.password-toggle:hover { opacity: 1; }
.password-toggle img { width: 22px; height: 22px; display: block; }

.password-counter {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.35rem;
  color: var(--text-muted, #94a3b8);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.password-counter.short { color: #f87171; }
.password-counter.ok { color: #34d399; }

.remember-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.25rem 0 1.25rem;
}

.remember-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  margin: 0;
}

.remember-label:hover {
  color: var(--text);
}

/* Animated remember-me checkbox (Uiverse checkbox-wrapper-12, adapted) */
.checkbox-wrapper-12 {
  position: relative;
  flex-shrink: 0;
}

.checkbox-wrapper-12 .goo-svg {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.checkbox-wrapper-12 * {
  box-sizing: border-box;
}

.checkbox-wrapper-12 input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  margin: 0;
}

.checkbox-wrapper-12 input[type="checkbox"]:focus {
  outline: 0;
}

.checkbox-wrapper-12 input[type="checkbox"]:focus-visible + label {
  box-shadow: 0 0 0 3px rgba(10, 47, 41, 0.45);
}

.checkbox-wrapper-12 .cbx {
  position: relative;
  width: 24px;
  height: 24px;
}

.checkbox-wrapper-12 .cbx input {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(148, 163, 184, 0.65);
  border-radius: 50%;
  z-index: 2;
}

.checkbox-wrapper-12 .cbx label {
  width: 24px;
  height: 24px;
  background: none;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  transform: translate3d(0, 0, 0);
  pointer-events: none;
  z-index: 1;
}

.checkbox-wrapper-12 .cbx > svg {
  position: absolute;
  top: 5px;
  left: 4px;
  z-index: 3;
  pointer-events: none;
}

.checkbox-wrapper-12 .cbx svg path {
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 19;
  stroke-dashoffset: 19;
  transition: stroke-dashoffset 0.3s ease;
  transition-delay: 0.2s;
}

.checkbox-wrapper-12 .cbx input:checked {
  border-color: var(--primary);
  background: var(--primary);
}

.checkbox-wrapper-12 .cbx input:checked + label {
  filter: url(#goo-auth-remember);
  animation: splash-12 0.6s ease forwards;
}

.checkbox-wrapper-12 .cbx input:checked + label + svg path {
  stroke-dashoffset: 0;
}

@keyframes splash-12 {
  40% {
    background: var(--primary);
    box-shadow:
      0 -18px 0 -8px var(--primary),
      16px -8px 0 -8px var(--primary),
      16px 8px 0 -8px var(--primary),
      0 18px 0 -8px var(--primary),
      -16px 8px 0 -8px var(--primary),
      -16px -8px 0 -8px var(--primary);
  }
  100% {
    background: var(--primary);
    box-shadow:
      0 -36px 0 -10px transparent,
      32px -16px 0 -10px transparent,
      32px 16px 0 -10px transparent,
      0 36px 0 -10px transparent,
      -32px 16px 0 -10px transparent,
      -32px -16px 0 -10px transparent;
  }
}

.btn-primary {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: var(--radius-input);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--on-accent);
  cursor: pointer;
  background: var(--accent);
  box-shadow: 0 8px 24px rgba(10, 47, 41, 0.22);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(10, 47, 41, 0.28);
}

.btn-primary:active { transform: translateY(0); }

.btn-primary.loading {
  color: transparent;
  pointer-events: none;
  position: relative;
}

.btn-primary.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(12, 51, 44, 0.25);
  border-top-color: #0c332c;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.btn-upload {
  width: 100%;
  height: var(--input-h);
  border: 1.5px dashed var(--input-border);
  border-radius: var(--radius-input);
  background: rgba(10, 47, 41, 0.08);
  color: var(--accent);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.btn-upload:hover {
  border-color: var(--accent);
  background: rgba(10, 47, 41, 0.15);
}

.profile-preview {
  margin-top: 0.75rem;
  display: flex;
  justify-content: center;
}

.profile-preview img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.trust-indicators {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.trust-indicators span {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-indicators .ti-check {
  color: #34d399;
  font-weight: 700;
}

.messages { margin-bottom: 1rem; }

.msg {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 0.5rem;
}

.msg.success {
  background: rgba(52, 211, 153, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.msg.error {
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.auth-toast-host {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 1200;
  width: min(92vw, 26rem);
  pointer-events: none;
}

.auth-toast {
  margin: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.auth-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.field.has-upload-error .btn-upload {
  border-color: #f87171;
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.08);
}

.error-text {
  color: #fca5a5;
  font-size: 0.82rem;
  margin-top: 0.35rem;
}

.validation-hint { font-size: 0.82rem; margin-top: 0.35rem; font-weight: 600; }
.validation-hint.success { color: #34d399; }
.validation-hint.error { color: #f87171; }

.hidden { display: none !important; }

.auth-footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  color: rgba(248, 250, 252, 0.35);
}

/* Upload modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 1rem;
}

.modal.open { display: flex; }

.modal-content {
  background: #f8fafc;
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: 20px;
  width: min(96vw, 920px);
  max-height: 90vh;
  overflow: auto;
  position: relative;
  color: #0f172a;
}

.modal-content .close {
  position: absolute;
  left: 1rem;
  top: 1rem;
  font-size: 1.75rem;
  border: none;
  background: none;
  cursor: pointer;
  color: #64748b;
  line-height: 1;
}

.modal-content h3 {
  text-align: center;
  margin: 0 0 1.25rem;
  font-size: 1.2rem;
}

.upload-step.hidden { display: none; }

.dropzone {
  min-height: 240px;
  border: 2px dashed #93c5fd;
  border-radius: 20px;
  background: linear-gradient(180deg, #f7f9f7, #e6ebe7);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dropzone:hover, .dropzone.drag-over {
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(10, 47, 41, 0.15);
}

.crop-area-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 300px);
  gap: 1rem;
}

.crop-container {
  width: 100%;
  aspect-ratio: 1;
  min-height: 260px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  touch-action: none;
}

.crop-container.masked::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0 43%, rgba(15, 23, 42, 0.35) 44%, rgba(15, 23, 42, 0.6) 100%);
  pointer-events: none;
}

.crop-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center;
  user-select: none;
  cursor: grab;
  max-width: none;
}

.crop-container.dragging .crop-image { cursor: grabbing; }

.crop-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #f1f5f9;
  border-radius: 14px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-slider { flex: 1; accent-color: var(--primary); }

.preview-sidebar {
  padding: 1rem;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  text-align: center;
}

.preview-box {
  width: 140px;
  height: 140px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.preview-box img { width: 100%; height: 100%; object-fit: cover; }

.btn-modal-primary,
.btn-modal-secondary {
  width: 100%;
  padding: 0.75rem;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.5rem;
}

.btn-modal-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
}

.btn-modal-secondary {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #475569;
}

.auth-card--choice {
  max-width: 640px;
}

.role-doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.role-door {
  /* Clear green — deep forest was hard to see on cream cards */
  --door-from: var(--primary-clear);
  --door-to: var(--primary-clear-dark);
  --door-soft: rgba(31, 122, 102, 0.14);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
  padding: 1.35rem 1.2rem 1.15rem 1.15rem;
  text-decoration: none;
  color: var(--text);
  background:
    linear-gradient(180deg, var(--door-soft), transparent 48%),
    rgba(15, 23, 42, 0.42);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.role-door:hover,
.role-door:focus-visible {
  transform: translateY(-4px);
  outline: none;
  border-color: var(--door-from);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.role-door:focus-visible {
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12), 0 0 0 3px rgba(31, 122, 102, 0.45);
}

.role-door--consultant:focus-visible {
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12), 0 0 0 3px rgba(20, 184, 166, 0.4);
}

.role-door-rail {
  position: absolute;
  top: 0;
  right: 0;
  width: 7px;
  height: 100%;
  background: linear-gradient(180deg, var(--door-from), var(--door-to));
}

.role-door-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 0.95rem;
  color: #fff;
  background: linear-gradient(145deg, var(--door-from), var(--door-to));
  box-shadow: 0 10px 20px rgba(31, 122, 102, 0.35);
}

.role-door-kicker {
  font-size: clamp(1.55rem, 2.4vw, 1.9rem);
  font-weight: 900;
  line-height: 1.3;
  color: var(--door-from);
  margin-bottom: 0.2rem;
}

.role-door-name {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.role-door-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.75;
  margin-bottom: 0.85rem;
}

.role-door-list {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  width: 100%;
}

.role-door-list li {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(31, 122, 102, 0.12);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}

.role-door-cta {
  margin-top: auto;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--door-from), var(--door-to));
  box-shadow: 0 8px 18px rgba(31, 122, 102, 0.35);
}

.role-door--consultant {
  --door-from: #14b8a6;
  --door-to: #0f766e;
  --door-soft: rgba(20, 184, 166, 0.14);
}

.role-door--consultant .role-door-icon {
  box-shadow: 0 10px 20px rgba(20, 184, 166, 0.38);
}

.role-door--consultant .role-door-list li {
  background: rgba(20, 184, 166, 0.12);
}

.role-door--consultant .role-door-cta {
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.35);
}

@media (max-width: 960px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-hero {
    padding: 2rem 1.5rem 1rem;
    text-align: center;
    align-items: center;
  }
  .auth-hero .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-features { align-items: flex-start; max-width: 20rem; margin: 0 auto; }
  .auth-brand { margin-bottom: 1.25rem; }
}

@media (max-width: 720px) {
  .role-doors { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
  .crop-area-wrapper { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

