.auth-page {
  min-height: 100vh;
  background: var(--bg-page);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.auth-brand { text-align: center; margin-bottom: 28px; }
.auth-brand h1 { font-size: 24px; font-weight: 600; color: var(--text-1); line-height: 1.3; }
.auth-brand p { margin-top: 8px; font-size: 13px; color: var(--text-3); }

.reg-head { text-align: center; margin-bottom: 28px; }
.reg-head h1 { font-size: 20px; font-weight: 600; color: var(--text-1); }
.reg-head p { margin-top: 8px; font-size: 13px; color: var(--text-3); }

.auth-card {
  width: 400px;
  max-width: 100%;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 32px 40px 28px;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  height: 48px;
  border: 0;
  background: transparent;
  font-size: 16px;
  color: var(--text-3);
  position: relative;
  padding: 0;
}

.auth-tab.active { color: var(--text-1); font-weight: 500; }
.auth-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--primary);
}

.auth-form .field { margin-bottom: 20px; }
.auth-form .field:last-child { margin-bottom: 0; }
.auth-form .field-row { display: flex; gap: 12px; align-items: flex-start; }
.auth-form .field-row .field { flex: 1; margin-bottom: 0; }
.auth-form .field-row .btn-outline { margin-top: 0; }
.auth-form.compact .field { margin-bottom: 16px; }
.auth-form.compact .field-row { margin-bottom: 16px; }

.auth-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 24px;
}

.auth-links { display: flex; justify-content: space-between; margin-top: 24px; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-3);
  font-size: 12px;
  margin: 28px 0 20px;
}

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

.oauth { display: flex; justify-content: center; gap: 20px; }

.oauth-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color .2s, border-color .2s;
}

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

.auth-footer { margin-top: 24px; font-size: 12px; color: var(--text-3); text-align: center; }
.auth-footer a { margin: 0 8px; }
.auth-footer a:first-child { margin-left: 0; }
.auth-footer a:last-child { margin-right: 0; }
.auth-footer a:hover { color: var(--primary); }

.agree-row { margin: 20px 0 24px; font-size: 12px; }
.agree-row .check { font-size: 12px; align-items: flex-start; }
.agree-row .check .box { margin-top: 2px; }

@media (max-width: 480px) {
  .auth-card { padding: 28px 24px 24px; }
  .auth-form .field-row .btn-outline { width: 92px; flex-basis: 92px; }
}
