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

.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}
.auth-logo-icon { font-size: 44px; display: block; margin-bottom: 6px; }
.auth-logo-name { font-size: 26px; font-weight: 700; color: var(--brand); letter-spacing: -.5px; }
.auth-logo-tag  { font-size: 13px; color: var(--text3); margin-top: 2px; }

.auth-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}

.auth-tabs {
  display: flex;
  gap: 0;
  background: var(--bg);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1;
  text-align: center;
  padding: 9px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  color: var(--text3);
  transition: .15s;
  border: none;
  background: none;
  font-family: inherit;
}
.auth-tab.active {
  background: var(--white);
  color: var(--brand);
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}

.auth-form { display: flex; flex-direction: column; }
.auth-form.hidden { display: none; }

.auth-name-row { display: flex; gap: 10px; }
.auth-name-row .form-group { flex: 1; }

.auth-divider {
  text-align: center;
  font-size: 12px;
  color: var(--text3);
  margin: 16px 0;
}

.auth-coach-code {
  font-size: 12px;
  color: var(--text3);
  text-align: center;
  margin-top: 12px;
}
.auth-coach-code a {
  color: var(--brand);
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
}

.coach-code-row { display: none; margin-bottom: 16px; }
.coach-code-row.show { display: block; }

.auth-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--danger);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 14px;
  display: none;
}
.auth-error.show { display: block; }

/* Forgot password link */
.auth-forgot {
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
}
.auth-forgot a {
  color: var(--brand);
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
}
.auth-forgot a:hover { text-decoration: underline; }

/* Form description text */
.auth-form-desc {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.5;
  margin-bottom: 18px;
}

/* Back to login link */
.auth-back-link {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
}
.auth-back-link a {
  color: var(--brand);
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
}
.auth-back-link a:hover { text-decoration: underline; }

/* Success state */
.auth-success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.auth-success-text {
  font-size: 14px;
  color: var(--text2);
  text-align: center;
  line-height: 1.5;
}
