/* UK login page (login.asp), from includes/login-uk.inc. Builds on css/subjects.css
   (the .sj tokens and breadcrumb). The site's own form styles reach every input,
   label and button, so the rules here are scoped under .sj. */

.lg-wrap
{
  position: relative;
  z-index: 0;
  padding: 18px 0 56px;
  background:
    radial-gradient(800px 380px at 92% -10%, rgba(122, 163, 230, .28), transparent 62%),
    var(--sj-tint);
}

/* A brand blue band for the breadcrumb, heading and intro (login.asp and
   logout-complete.asp), as on the sign-up steps. It must stay a plain block: the
   shared menu's items hang below the blue bar, and a new formatting context here
   would be squeezed beside them. z-index keeps it under the menu's dropdowns. */
.lg-hero
{
  position: relative;
  z-index: 0;
  padding: 18px 0 26px;
  background:
    radial-gradient(900px 420px at 88% -12%, rgba(160, 195, 245, .45), transparent 62%),
    radial-gradient(700px 360px at -5% 112%, rgba(169, 214, 34, .12), transparent 60%),
    linear-gradient(180deg, #3a68ae, #4170b8);
  color: #f3f7fc;
}

.lg-hero .sj-crumbs a, .lg-hero .sj-crumbs span
{
  color: #f3f7fc;
}

.lg-hero .sj-crumbs a:hover
{
  color: #fff;
}

.lg-hero .sj-crumbs a + span:before
{
  color: rgba(255, 255, 255, .6);
}

.sj .lg-hero h1
{
  color: #fff;
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.08;
  letter-spacing: -.026em;
}

/* The lime stroke under the heading. It is drawn behind the words and takes up no
   room. */
.lg-mark
{
  position: relative;
  z-index: 0;
  white-space: nowrap;
}

.lg-mark:before
{
  content: "";
  position: absolute;
  top: 80%;
  right: -.04em;
  bottom: 1%;
  left: -.04em;
  z-index: -1;
  border-radius: 999px;
  background: var(--sj-lime);
  transform: rotate(-.8deg);
}

.lg-hero__intro
{
  max-width: 620px;
  margin-top: 12px;
  color: #f3f7fc;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
}

/* The section under a band: plain tint, and its first thing starts at the top. */
.lg-hero + .lg-wrap
{
  padding-top: 28px;
  background: var(--sj-tint);
}

.lg-hero + .lg-wrap .lg-box
{
  margin-top: 0;
}

.lg-hero + .lg-wrap .lg-main > :first-child
{
  margin-top: 0;
}

/* No card: the form sits on the page, with "New to Tutor Hunt?" beside it
   behind a dividing line (below it on phones). */
.lg-box
{
  display: grid;
  margin-top: 14px;
}

.lg-intro, .lg-note, .lg-form
{
  max-width: 480px;
}

.sj .lg-main h1
{
  font-size: clamp(32px, 3.2vw, 42px);
}

.lg-intro
{
  margin-top: 8px;
  color: var(--sj-slate);
  font-size: 16px;
  line-height: 1.5;
}

/* Message from ?status= */
.lg-note
{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.45;
}

.lg-note svg
{
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: -1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lg-note p
{
  color: var(--sj-ink);
}

.lg-note--error
{
  border-color: #f1c4bf;
  background: #fdf1ef;
  color: #b42318;
}

.lg-note--info
{
  border-color: #cddbf0;
  background: var(--sj-tint);
  color: var(--sj-blue);
}

.lg-note--done
{
  border-color: #cfe6a3;
  background: #f4fae6;
  color: #4d7a00;
}

/* Form */
.lg-form
{
  margin-top: 22px;
}

.lg-field + .lg-field
{
  margin-top: 18px;
}

.lg-label
{
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin-bottom: 7px;
}

.sj .lg-label label
{
  display: block;
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
  color: var(--sj-navy);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: none;
}

.sj .lg-label a
{
  font-size: 14px;
  font-weight: 600;
}

/* "Forgot your password?" comes after the password box in the markup, so Tab goes
   from the username straight to the password; it is shown at the right of the
   "Password" label, level with it (the label's line is 15px x 1.3). */
.sj .lg-field
{
  position: relative;
}

.sj .lg-forgot
{
  position: absolute;
  top: 0;
  right: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 19.5px;
}

.sj .lg-field input
{
  display: block;
  width: 100%;
  height: 54px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid #c6d3e5;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  color: var(--sj-ink);
  font-family: inherit;
  font-size: 17px;
  line-height: 1.3;
  transition: border-color .15s, box-shadow .15s;
}

.sj .lg-field input:hover
{
  border-color: #9fb3cf;
}

.sj .lg-field input:focus
{
  border-color: var(--sj-blue);
  outline: none;
  box-shadow: 0 0 0 4px rgba(58, 104, 174, .16);
}

.sj .lg-field [aria-invalid="true"]
{
  border-color: #c4372c;
}

/* Password with a Show button inside the box */
.lg-pass
{
  position: relative;
}

.sj .lg-pass input
{
  padding-right: 84px;
}

.sj .lg-show
{
  position: absolute;
  top: 7px;
  right: 7px;
  bottom: 7px;
  width: auto;
  height: auto;
  margin: 0;
  min-width: 64px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--sj-tint);
  box-shadow: none;
  color: var(--sj-navy);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
  cursor: pointer;
}

.sj .lg-show:hover, .sj .lg-show:focus
{
  background: #e1e9f6;
}

.sj .lg-show:focus-visible
{
  outline: 3px solid var(--sj-blue);
  outline-offset: 1px;
}

.lg-error
{
  margin-top: 12px;
  color: #b42318;
  font-size: 15px;
  line-height: 1.4;
}

.sj .lg-go
{
  display: block;
  width: 100%;
  height: 56px;
  margin: 24px 0 0;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--sj-lime);
  box-shadow: none;
  color: var(--sj-navy);
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  text-transform: none;
  cursor: pointer;
  transition: background-color .15s;
}

.sj .lg-go:hover, .sj .lg-go:focus
{
  background: var(--sj-lime-dark);
}

.sj .lg-go:focus-visible
{
  outline: 3px solid var(--sj-blue);
  outline-offset: 2px;
}

/* Forgot username / password: the "Go to log in" link after the email is sent */
.sj a.lg-go--link
{
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 480px;
  color: var(--sj-navy);
  text-decoration: none;
}

.lg-again
{
  max-width: 480px;
  margin-top: 16px;
  color: var(--sj-slate);
  font-size: 15px;
  line-height: 1.5;
}

.lg-back
{
  margin-top: 20px;
  font-size: 15px;
}

.sj .lg-back a
{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.lg-back svg
{
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sj .lg-note a
{
  font-weight: 600;
  text-decoration: underline;
}

/* New to Tutor Hunt? */
.lg-side
{
  margin-top: 40px;
  padding-top: 34px;
  border-top: 1px solid #cddbf0;
  color: var(--sj-ink);
}

.sj .lg-side h2
{
  color: var(--sj-navy);
  font-size: 24px;
}

.lg-side p
{
  max-width: 420px;
  margin-top: 10px;
  color: var(--sj-slate);
  line-height: 1.5;
}

.lg-side ul
{
  margin-top: 18px;
}

.lg-side li
{
  display: flex;
  align-items: center;
  font-size: 15px;
}

.lg-side li + li
{
  margin-top: 8px;
}

.lg-side .icon
{
  flex: none;
  width: 17px;
  height: 17px;
  margin-right: 9px;
  fill: #5c8f00;
}

.sj a.lg-signup
{
  display: inline-block;
  align-self: flex-start;
  margin-top: 24px;
  padding: 13px 26px;
  border: 2px solid var(--sj-navy);
  border-radius: 999px;
  color: var(--sj-navy);
  font-weight: 700;
  line-height: 1.3;
  transition: background-color .15s, color .15s;
}

.sj a.lg-signup:hover, .sj a.lg-signup:focus
{
  border-color: var(--sj-blue);
  background: var(--sj-blue);
  color: #fff;
}

/* Need more help? (forgot pages): the line under the Contact us button */
.sj .lg-side .lg-new
{
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #cddbf0;
  color: var(--sj-ink);
}

.sj .lg-new a
{
  font-weight: 700;
}

@media (min-width: 768px)
{
  .lg-wrap
  {
    padding: 22px 0 80px;
  }

  .lg-hero
  {
    padding: 22px 0 34px;
  }

  .lg-hero + .lg-wrap
  {
    padding-top: 36px;
  }

  .lg-box
  {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    margin-top: 26px;
  }

  .lg-main
  {
    padding-right: 48px;
  }

  .lg-side
  {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    padding: 8px 0 8px 48px;
    border-top: 0;
    border-left: 1px solid #cddbf0;
  }
}

@media (min-width: 1024px)
{
  .lg-main
  {
    padding-right: 72px;
  }

  .lg-side
  {
    padding-left: 72px;
  }
}

@media print
{
  .lg-side
  {
    display: none;
  }
}
