/* Login page.
   Layer: pages. */
@layer pages {
  /* Clean School Login Form */
  .login-wrapper {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--ds-space-200) var(--ds-space-150);
  }

  .login-panel {
    width: 100%;
    max-width: 420px;
    background: var(--color-white);
    border: 1px solid var(--border-subtle);
    border-top: 4px solid var(--color-navy);
    border-radius: var(--radius-sm);
    padding: var(--ds-space-200);
  }

  .login-header {
    text-align: center;
    margin-bottom: var(--ds-space-150);
  }

  .login-logo {
    height: 48px;
    margin-bottom: var(--ds-space-85);
  }

  .login-title {
    font-size: var(--ds-font-size-135);
    font-weight: var(--ds-font-weight-bold);
    color: var(--color-navy);
  }

  .login-subtitle {
    font-size: var(--ds-font-size-85);
    color: var(--text-muted);
    margin-top: var(--ds-space-20);
  }

  .login-subdomain-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--ds-space-35);
    background: var(--ds-color-info-bg);
    color: var(--ds-color-info-text);
    font-size: var(--ds-font-size-75);
    font-weight: var(--ds-font-weight-semibold);
    padding: var(--ds-space-20) var(--ds-space-60);
    border-radius: var(--ds-radius-pill);
    border: 1px solid var(--ds-color-info-border);
    margin-top: var(--ds-space-50);
  }

  .subdomain-dot {
    width: 6px;
    height: 6px;
    background: var(--ds-blue-500);
    border-radius: var(--ds-radius-circle);
  }

  .form-field {
    margin-bottom: var(--ds-space-115);
  }

  .form-label {
    display: block;
    font-size: var(--ds-font-size-82);
    font-weight: var(--ds-font-weight-semibold);
    color: var(--text-main);
    margin-bottom: var(--ds-space-35);
  }

  .form-control {
    width: 100%;
    padding: var(--ds-space-55) var(--ds-space-75);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: var(--ds-font-size-90);
    color: var(--text-main);
  }

  .form-control:focus {
    outline: none;
    border-color: var(--color-academy-blue);
    box-shadow: var(--ds-shadow-ring-2-academy-600-a15);
  }

  .btn-signin {
    width: 100%;
    padding: var(--ds-space-65) var(--ds-space-100);
    background-color: var(--color-academy-blue);
    color: var(--ds-color-text-inverse);
    font-family: var(--font-family);
    font-size: var(--ds-font-size-95);
    font-weight: var(--ds-font-weight-semibold);
    border: 1px solid var(--ds-academy-700-alt);
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-top: var(--ds-space-50);
  }

  .btn-signin:hover {
    background-color: var(--color-academy-hover);
  }

  /* links to the public privacy policy and terms (required for Sign in with Google) */
  .login-legal {
    display: flex;
    justify-content: center;
    gap: var(--ds-space-50);
    margin-top: var(--ds-space-125);
    font-size: var(--ds-font-size-80);
    color: var(--text-muted);
  }

  .login-legal a {
    color: var(--text-muted);
  }

  .login-legal a:hover {
    color: var(--color-academy-blue);
  }

  /* "or" rule between the password form and the Google button */
  .login-divider {
    display: flex;
    align-items: center;
    gap: var(--ds-space-75);
    margin: var(--ds-space-125) 0;
    font-size: var(--ds-font-size-80);
    color: var(--text-muted);
  }

  .login-divider::before,
  .login-divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--border-subtle);
  }

  .login-google-hint {
    margin-top: var(--ds-space-50);
    text-align: center;
    font-size: var(--ds-font-size-78);
    color: var(--text-muted);
  }

  /* "Forgot password?" under the sign-in button, and the forgot / reset password pages */
  .login-forgot {
    margin-top: var(--ds-space-85);
    text-align: center;
    font-size: var(--ds-font-size-85);
  }

  .login-forgot a {
    color: var(--color-academy-blue);
  }

  .login-intro {
    font-size: var(--ds-font-size-90);
    color: var(--text-main);
    margin-bottom: var(--ds-space-115);
  }

  .login-hint {
    margin-top: var(--ds-space-35);
    font-size: var(--ds-font-size-78);
    color: var(--text-muted);
  }

}
