/* ===== AUTH PAGES (Sign In / Sign Up) ===== */

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

/* --- Left Panel (Decorative) --- */
.auth-left {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(37,99,235,.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(229,161,0,.05) 0%, transparent 50%),
    var(--g50);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--g200);
}

.auth-left-logo {
  position: absolute;
  top: 36px;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.auth-left-logo img {
  height: 48px;
  width: auto;
}

.auth-left-content {
  max-width: 360px;
  margin: 0 auto;
  text-align: center;
}

.auth-left-content h2 {
  font-size: 2.125rem;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 12px;
}

.auth-left-content p {
  color: var(--g500);
  font-size: 1rem;
  margin-bottom: 40px;
}

/* Feature list on left panel */
.auth-left-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.auth-left-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--g200);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.auth-left-feature-icon {
  font-size: 1.375rem;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}

.auth-left-feature span:last-child {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--g700);
}

/* --- Right Panel (Form) --- */
.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: #fff;
  overflow-y: auto;
}

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

.auth-form-container h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}

.auth-form-container > p {
  color: var(--g500);
  font-size: 0.9375rem;
  margin-bottom: 28px;
}

/* Role Selector */
.role-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.role-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  border: 2px solid var(--g200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  background: #fff;
}

.role-card:hover {
  border-color: var(--blue);
  background: var(--blue-p);
}

.role-card.active {
  border-color: var(--blue);
  background: var(--blue-p);
  box-shadow: 0 0 0 3px rgba(26,111,196,.12);
}

.role-card svg {
  width: 28px;
  height: 28px;
  color: var(--g500);
  transition: color 0.2s;
}

.role-card.active svg,
.role-card:hover svg {
  color: var(--blue);
}

.role-card span {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--g700);
}

/* Auth Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--g600);
}

.auth-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  cursor: pointer;
}

.auth-forgot {
  font-size: 0.875rem;
  color: var(--blue);
  font-weight: 500;
}

.auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--g600);
  line-height: 1.5;
}

.auth-terms input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  cursor: pointer;
  margin-top: 2px;
  flex-shrink: 0;
}

.auth-terms a {
  font-weight: 500;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 0;
}

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

.auth-divider span {
  color: var(--g400);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Social buttons */
.auth-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-social {
  width: 100%;
  padding: 11px 20px;
  border: 1.5px solid var(--g200);
  border-radius: var(--radius-md);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--g700);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.btn-social:hover {
  border-color: var(--g300);
  background: var(--g50);
}

.btn-social svg {
  width: 20px;
  height: 20px;
}

/* Footer link */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--g500);
}

.auth-footer a {
  font-weight: 600;
}

.auth-back-link {
  text-align: center;
  margin-top: 16px;
}

.auth-back-link a {
  font-size: 0.875rem;
  color: var(--g500);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.auth-back-link a:hover {
  color: var(--blue);
}

.auth-back-link svg {
  width: 14px;
  height: 14px;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-left {
    display: none;
  }

  .auth-right {
    padding: 32px 24px;
  }

  .auth-form-container {
    max-width: 100%;
  }
}
