/* auth page */

body.sessions,
body.patron_registrations,
body.artist_registrations,
body.contacts {
  min-height: 100vh;
}

body.sessions .site-header,
body.sessions footer,
body.patron_registrations .site-header,
body.patron_registrations footer,
body.contacts .site-header,
body.contacts footer {
  display: none;
}

body.artist_registrations .header-right-nav,
body.artist_registrations footer {
  display: none;
}

body.artist_registrations {
  min-height: auto;
}

body.artist_registrations .auth-page {
  min-height: auto;
  padding: 3rem 0;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 0;
}

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

.auth-logo-link {
  display: block;
  text-align: center;
  margin-bottom: 2em;
}

.auth-logo {
  max-width: 200px;
  height: auto;
}

.auth-tabs {
  display: flex;
  gap: 1.5em;
  margin-bottom: 1.5em;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
}

.auth-tab-separator {
  color: var(--grey-800);
  font-size: 1em;
  font-weight: 300;
  user-select: none;
  line-height: 1;
}

.auth-tab {
  font-family: "Bodoni Moda", serif;
  font-size: 2em;
  font-weight: 440;
  letter-spacing: 0.08em;
  color: var(--mb-70);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
}

.auth-tab:hover {
  color: var(--grey-700);
}

.auth-tab.active {
  color: var(--mb);
  font-weight: 440;
}

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

.auth-field {
  margin-bottom: 16px;
}

.auth-label {
  display: block;
  font-size: 16px;
  font-weight: 540;
  letter-spacing: 0.0875rem;
  color: var(--dc-greys-900);
  margin-bottom: 0.5em;
  text-transform: uppercase;
}

.auth-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--mb-70);
  font-size: 0.9375em;
  color: var(--dc-greys-900);
  background: transparent;
  transition: border-color 0.2s;
  outline: none;
}

.auth-input::placeholder {
  color: var(--mb-70);
}

.auth-input:focus {
  border-bottom-color: var(--mb-70);
}

.auth-forgot {
  text-align: center;
  margin-bottom: 24px;
}

.auth-forgot-link {
  font-size: 14px;
  color: var(--dc-greys-900);
  text-decoration: none;
  transition: color 0.2s;
  margin-bottom: 24px;
}

.auth-forgot-link:hover {
  color: var(--grey-700);
}

.auth-submit-btn {
  width: 100%;
  padding: 0.875rem 21.5px;
  background-color: var(--dc-greys-900);
  color: var(--shw);
  border: none;
  border-radius: 4px;
  font-size: 0.875em;
  font-weight: 540 !important;
  letter-spacing: 0.08em;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background-color 0.2s;
  text-transform: uppercase;
  margin-top: 10px;
}

.auth-submit-btn:hover {
  background-color: var(--grey-800);
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 1.5em 0px;
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background-color: var(--mb-70);
}

.auth-divider-text {
  position: relative;
  display: inline-block;
  padding: 0 1em;
  background-color: var(--bg);
  font-family: "Montserrat", sans-serif;
  font-size: 0.6875em;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--mb-70);
}

.auth-continue-text {
  display: block;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  color: var(--dc-greys-900);
  margin-bottom: 1em;
  font-weight: 540;
  text-transform: uppercase;
}

.auth-social-buttons {
  display: flex;
  justify-content: center;
  gap: 1em;
}

.auth-social-btn {
  width: 48px;
  height: 48px;
  border: 1px solid var(--grey-200);
  border-radius: 4px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
  font-family: var(--font-sans);
  letter-spacing: 0.08em;
}

.auth-social-btn:hover {
  border-color: var(--grey-400);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.auth-social-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.auth-alert {
  color: var(--status-red);
  background-color: var(--status-red-soft-1);
  padding: 0.75em;
  border-radius: 4px;
  font-size: 0.875em;
  margin-bottom: 1em;
  text-align: center;
  font-family: "Montserrat", sans-serif;
}

.auth-notice {
  color: var(--status-green);
  background-color: var(--status-green-soft-1);
  padding: 0.75em;
  border-radius: 4px;
  font-size: 0.875em;
  margin-bottom: 1em;
  text-align: center;
  font-family: "Montserrat", sans-serif;
}

/* Validation styles */
.auth-error {
  font-size: 0.75em;
  color: var(--status-red);
  margin-top: 0.25em;
  font-weight: 500;
  transition: opacity 0.2s;
  font-family: "Montserrat", sans-serif;
}

.auth-error.hidden {
  display: none;
}

.auth-input.error {
  border-bottom-color: var(--status-red);
}

.auth-input.error:focus {
  border-bottom-color: var(--status-red);
}

/* Password field wrapper */
.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-password-input,
.auth-password-confirmation-input,
.auth-login-password-input {
  padding-right: 3em;
}

.auth-password-toggle {
  position: absolute;
  right: 0.5em;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  font-family: var(--font-sans);
  letter-spacing: 0.08em;
}

.auth-password-toggle:hover {
  opacity: 0.7;
}

.auth-password-toggle:focus {
  outline: none;
}

.auth-password-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.auth-password-icon.hidden {
  display: none;
}

/* Cloudflare Turnstile widget container */
.auth-turnstile {
  margin-bottom: 16px;
}

/* legacy login form styles */

.form-login,
.tw > .form-login {
  width: min(100%, 320px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--crotchet);
  margin: 0 auto;

  & > input[type="submit"] {
    margin-top: var(--minim);
  }
}

.form-login-heading {
  margin-bottom: var(--minim);
  text-transform: uppercase;
  text-align: center;
}

/* Terms and Conditions Checkbox */
.auth-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

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

.auth-checkbox-text {
  font-family: var(--font-sans);
  font-size: 11.6px;
  color: var(--dc-greys-900);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.5;
}

.auth-link {
  color: var(--dc-greys-900);
  text-decoration: underline;
  transition: color 0.2s;
}

.auth-link:hover {
  color: var(--grey-700);
}

.auth-submit-btn:hover:not(:disabled) {
  background-color: var(--grey-800);
}

.auth-submit-btn:disabled {
  background-color: var(--mb-70);
  cursor: not-allowed;
}

/* Laptop scaling - screens 1300px and below */
@media (max-width: 1300px) {
  .auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
  }

  .auth-container {
    max-width: 240px;
  }

  .auth-logo-link {
    margin-bottom: 1.6em;
  }

  .auth-logo {
    max-width: 160px;
  }

  .auth-tabs {
    gap: 1.2em;
    margin-bottom: 1.2em;
  }

  .auth-tab {
    font-size: 1.6em;
  }

  .auth-tab-separator {
    font-size: 0.8em;
  }

  .auth-field {
    margin-bottom: 12.8px;
  }

  .auth-label {
    font-size: 12.8px;
    margin-bottom: 0.4em;
  }

  .auth-input {
    font-size: 0.75em;
  }

  .auth-submit-btn {
    padding: 0.7rem 17.2px;
    font-size: 0.7em;
    margin-top: 8px;
  }

  .auth-divider {
    margin: 1.2em 0;
  }

  .auth-divider-text {
    font-size: 0.55em;
  }

  .auth-continue-text {
    font-size: 9.6px;
    margin-bottom: 0.8em;
  }

  .auth-social-buttons {
    gap: 0.8em;
  }

  .auth-social-btn {
    width: 38.4px;
    height: 38.4px;
  }

  .auth-social-icon {
    width: 16px;
    height: 16px;
  }

  .auth-alert {
    padding: 0.6em;
    font-size: 0.7em;
  }

  .auth-error {
    font-size: 0.6em;
  }

  .auth-password-icon {
    width: 16px;
    height: 16px;
  }

  .auth-checkbox-label {
    gap: 8px;
  }

  .auth-checkbox-label input[type="checkbox"] {
    width: 12.8px;
    height: 12.8px;
  }

  .auth-checkbox-text {
    font-size: 9.28px;
  }
}
