.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
}

/* BRAND PANEL */

.auth-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: clamp(48px, 8vw, 120px);

  color: var(--white);

  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(200, 16, 46, 0.48),
      transparent 35%
    ),
    linear-gradient(
      140deg,
      #050505 0%,
      #151515 65%,
      #3b080f 100%
    );
}

.rugby-logo {
  width: 72px;
  height: 72px;

  display: grid;
  place-items: center;

  margin-bottom: 26px;

  border-radius: 18px;

  background: var(--red);

  font-size: 38px;
}

.eyebrow {
  margin: 0 0 10px;

  color: #d4d4d4;

  font-size: 0.78rem;
  font-weight: 700;

  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-brand h1 {
  margin: 0;

  font-size: clamp(3.5rem, 7vw, 6.5rem);

  line-height: 0.9;

  letter-spacing: -0.05em;
}

.brand-description {
  max-width: 580px;

  margin: 28px 0 0;

  color: #d4d4d4;

  font-size: 1.05rem;

  line-height: 1.65;
}


/* AUTH PANEL */

.auth-card {
  padding: 48px;

  background: var(--white);

  overflow-y: auto;
}

.auth-tabs {
  display: grid;

  grid-template-columns: 1fr 1fr;

  margin-bottom: 40px;

  border-bottom: 1px solid var(--border);
}

.auth-tab {
  padding: 14px 8px;

  border: 0;

  border-bottom: 3px solid transparent;

  background: transparent;

  color: var(--muted);

  font-weight: 700;

  cursor: pointer;
}

.auth-tab.active {
  color: var(--red);

  border-bottom-color: var(--red);
}


/* FORMS */

.auth-card h2 {
  margin: 0 0 8px;

  font-size: 1.85rem;
}

.auth-card h3 {
  margin: 0 0 6px;
}

.form-intro,
.small-text,
.field-help {
  color: var(--muted);

  line-height: 1.5;
}

.form-intro {
  margin: 0 0 28px;
}

.small-text {
  margin-top: 0;
}

.field-help {
  margin: 6px 0 0;

  font-size: 0.8rem;
}

form label {
  display: block;

  margin: 20px 0 7px;

  font-size: 0.9rem;
  font-weight: 700;
}

form input,
form select {
  width: 100%;

  min-height: 48px;

  padding: 12px 14px;

  border: 1px solid var(--border);

  border-radius: 9px;

  background: var(--white);

  color: var(--black);
}

form input:focus,
form select:focus {
  outline: 3px solid rgba(200, 16, 46, 0.12);

  border-color: var(--red);
}

.primary-button {
  width: 100%;

  min-height: 50px;

  margin-top: 28px;

  padding: 13px 18px;

  border: 0;

  border-radius: 9px;

  background: var(--red);

  color: var(--white);

  font-weight: 700;

  cursor: pointer;
}

.primary-button:hover {
  background: var(--red-dark);
}

.primary-button:disabled {
  opacity: 0.6;

  cursor: wait;
}

.form-divider {
  height: 1px;

  margin: 32px 0;

  background: var(--border);
}


/* REGISTRATION */

.approval-notice {
  margin: 20px 0 28px;

  padding: 14px 16px;

  border-left: 4px solid var(--red);

  border-radius: 6px;

  background: #f8f8f8;

  font-size: 0.9rem;

  line-height: 1.5;
}


/* MESSAGES */

.auth-message {
  margin-top: 24px;

  padding: 14px 16px;

  border-radius: 9px;

  line-height: 1.5;
}

.auth-message.info {
  background: #eef3f8;

  color: #26384a;
}

.auth-message.success {
  background: #e9f6ed;

  color: var(--success);
}

.auth-message.error {
  background: #fff0ef;

  color: var(--error);
}


/* FOOTER */

.auth-footer {
  margin-top: 42px;

  padding-top: 20px;

  border-top: 1px solid var(--border);

  color: var(--muted);

  font-size: 0.78rem;

  text-align: center;
}

/* =========================================================
   AUTH TEXT BUTTONS
   Forgot Password / Back to Sign In
========================================================= */

.auth-text-button {
  display: block;
  width: auto;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;

  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;

  color: #d40b2f;
  cursor: pointer;
}

.auth-text-button:hover {
  color: #a90825;
  text-decoration: underline;
}


/* Forgot password — right aligned below password field */

#forgot-password-button {
  margin: 8px 0 22px auto;
}


/* Back to Sign In — centred below reset button */

#back-to-login-button {
  margin: 18px auto 0;
  color: #626978;
}

#back-to-login-button:hover {
  color: #d40b2f;
}


/* Keyboard accessibility */

.auth-text-button:focus-visible {
  outline: 2px solid #d40b2f;
  outline-offset: 4px;
  border-radius: 2px;
}
