/* Auth pages */
.auth-body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at top left, rgba(238,77,45,.18), transparent 45%),
    radial-gradient(ellipse at bottom right, rgba(246,145,19,.15), transparent 40%),
    #f5f5f5;
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
}

.auth-page {
  max-width: 440px;
  margin: 0 auto;
  padding: 40px 16px 48px;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--primary);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}

.auth-logo {
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.auth-card {
  background: #fff;
  border-radius: 8px;
  padding: 28px 24px;
  box-shadow: 0 8px 28px rgba(0,0,0,.06);
}

.auth-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #222;
}

.auth-subtitle {
  color: #757575;
  margin-bottom: 22px;
  font-size: 14px;
}

.auth-referral-note {
  margin: -10px 0 18px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff8f6;
  border: 1px solid rgba(238, 77, 45, 0.2);
  font-size: 13px;
  color: #555;
}

.auth-form { display: flex; flex-direction: column; gap: 14px; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 11px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
}

.form-group input:focus { border-color: var(--primary); }

.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field input {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 11px 44px 11px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
}

.password-field input:focus {
  border-color: var(--primary);
}

.password-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #888;
  cursor: pointer;
  transition: color .15s, background .15s;
}

.password-toggle:hover {
  color: var(--primary);
  background: #fff5f2;
}

.password-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.password-toggle-icon {
  display: block;
  flex-shrink: 0;
}

.password-toggle[aria-pressed="true"] .password-toggle-icon--show {
  display: none;
}

.password-toggle[aria-pressed="true"] .password-toggle-icon--hide {
  display: block;
}

.password-toggle[aria-pressed="false"] .password-toggle-icon--hide {
  display: none;
}

.role-options { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }

.role-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.role-option:has(input:checked),
.role-option:hover {
  border-color: var(--primary);
  background: #fff8f6;
}

.role-option strong { display: block; font-size: 14px; color: #222; }
.role-option small { color: #888; font-size: 12px; }
.role-option input { margin-top: 3px; accent-color: var(--primary); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-block { width: 100%; }

.auth-switch {
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
  color: #666;
}

.auth-switch a { color: var(--primary); font-weight: 500; }

.auth-form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: -4px;
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  user-select: none;
}

.auth-remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.auth-forgot-link {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}

.auth-forgot-link:hover {
  text-decoration: underline;
}

.auth-footer-note {
  text-align: center;
  margin-top: 20px;
  color: #aaa;
  font-size: 12px;
}

.alert {
  padding: 10px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
  font-size: 13px;
  transition: opacity .35s ease, transform .35s ease, max-height .35s ease, margin .35s ease, padding .35s ease;
}

.alert ul { margin: 0; padding-left: 16px; }
.alert-error { background: #fff1f0; color: #cf1322; border: 1px solid #ffa39e; }
.alert-success { background: #f6ffed; color: #389e0d; border: 1px solid #b7eb8f; }

.auth-oauth { margin-bottom: 4px; }

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 18px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  background: #fff;
  color: #3c4043;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
}

.btn-google:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 3px rgba(60, 64, 67, .15);
  color: #3c4043;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 4px;
  color: #888;
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e8e8e8;
}

.auth-divider span { flex-shrink: 0; }
