/* The frame of every account screen (resources/views/components/auth/shell.blade.php). */

.r2e-auth {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--r2e-space-6) var(--r2e-space-4);
}

.r2e-auth-card {
  width: 100%;
  max-width: 30rem;
  background: var(--bs-body-bg);
  border-radius: var(--r2e-radius-lg);
  box-shadow: var(--r2e-shadow-lg);
  overflow: hidden;
}

.r2e-auth-visual {
  display: none;
}

.r2e-auth-body {
  padding: var(--r2e-space-8) var(--r2e-space-6);
}

.r2e-auth-logo {
  display: inline-block;
  margin-bottom: var(--r2e-space-6);
}

.r2e-auth-logo-mark {
  height: 2.5rem;
}

.r2e-auth-title {
  margin-bottom: var(--r2e-space-2);
  font-family: "Poppins";
  font-size: var(--r2e-text-2xl);
  font-weight: 700;
  line-height: var(--r2e-leading-tight);
  letter-spacing: var(--r2e-tracking-tight);
}

.r2e-auth-intro {
  margin-bottom: var(--r2e-space-6);
}

.r2e-auth form {
  margin-top: var(--r2e-space-6);
}

.r2e-auth-intro + form,
.r2e-auth-or + form {
  margin-top: 0;
}

/* The "or" between a sign-in button (Google) and the email form: a hairline each side. */
.r2e-auth-or {
  display: flex;
  align-items: center;
  gap: var(--r2e-space-3);
  margin: var(--r2e-space-4) 0;
  color: var(--r2e-ink-muted);
  font-size: var(--r2e-text-sm);
}

.r2e-auth-or::before,
.r2e-auth-or::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--bs-border-color);
}

/* 16px at least, or iOS zooms into the field on focus. */
.r2e-auth .form-control {
  font-size: max(1rem, 16px);
}

/* "Keep me logged in" on the left, "Forgot password?" on the right, one line when it fits. */
.r2e-auth-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--r2e-space-2) var(--r2e-space-4);
  margin-bottom: var(--r2e-space-4);
}

.r2e-auth-row .form-check {
  margin-bottom: 0;
}

.r2e-auth-alt {
  margin: var(--r2e-space-6) 0 0;
  text-align: center;
}

@media (min-width: 992px) {
  .r2e-auth-card--split {
    max-width: 64rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .r2e-auth-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--r2e-space-12);
    border-right: 1px solid var(--bs-border-color);
  }

  .r2e-auth-visual img {
    max-width: 100%;
    height: auto;
  }

  .r2e-auth-body {
    align-self: center;
    padding: var(--r2e-space-16) var(--r2e-space-12);
  }
}

/* A phone: the card is the screen, no frame around it, the form starts at the top. */
@media (max-width: 575.98px) {
  .r2e-auth {
    justify-content: flex-start;
    align-items: stretch;
    padding: 0;
  }

  .r2e-auth-card {
    max-width: none;
    border-radius: 0;
    box-shadow: none;
  }

  .r2e-auth-body {
    padding: var(--r2e-space-6) var(--r2e-space-4);
  }

  .r2e-auth-logo {
    margin-bottom: var(--r2e-space-4);
  }

  .r2e-auth-logo-mark {
    height: 2rem;
  }
}
