/* GelesTikJums.lt - login card of authentication.tpl (Lovable /prisijungimas). */
/**********************************************************
  Login page (design: Lovable /prisijungimas)
  Minimal page: header (top bar with the language select, logo, account block), the login card and no footer.
  The same page is shown in the mobile app WebView, so: no hover-only controls, 16px inputs (no zoom on iOS), 54px touch
  targets and a card-less "app" look on phones. Colours / radius come from css/autoload/tokens.css. Everything is scoped with
  .auth-card (the card) or #authentication / #module-elpcontentform-landingpage (page level: background, no footer, header; the old
  landing page includes this template, so it gets the same page). The file is in css/autoload (loaded on every page)
  because authentication.tpl is also included by the old landing page of the module elpcontentform (LandingPageForm.tpl), which
  shows the same card. The state with the account creation form is not touched.
**********************************************************/
#authentication #page,
#module-elpcontentform-landingpage #page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--color-primary-light);
  /* Lovable: radial light spot top right over a mint to white gradient */
  background: radial-gradient(900px 520px at 85% 0%, var(--color-white) 0%, rgba(255, 255, 255, 0) 70%), linear-gradient(160deg, #d3eee9 0%, var(--color-primary-light) 40%, var(--color-bg-alt) 100%);
}
#authentication .footer-container {
  display: none; /* the old landing page (#module-elpcontentform-landingpage) keeps its footer */
}
#authentication .columns-container,
#module-elpcontentform-landingpage .columns-container {
  background: transparent; /* the theme gives it a white background, the gradient of #page has to show */
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  /* margin-top (below the fixed header) comes from css/autoload/header-v2.css */
  padding: clamp(28px, 7vh, 72px) 16px 56px;
}
#authentication #columns,
#module-elpcontentform-landingpage #columns,
#authentication #center_column,
#module-elpcontentform-landingpage #center_column {
  width: 100%;
  float: none;
  padding-left: 0;
  padding-right: 0;
}
#authentication #login-form-wrapper,
#module-elpcontentform-landingpage #login-form-wrapper {
  margin: 0;
  display: flex;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 40px 40px 32px;
  text-align: left;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(20, 40, 45, 0.06), 0 24px 56px -20px rgba(8, 124, 119, 0.35);
}
.auth-card .auth-card__form {
  display: grid;
  gap: 16px;
  margin: 0;
}
.auth-card .auth-card__icon {
  display: inline-grid;
  place-items: center;
  justify-self: start;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: var(--color-primary);
  background: rgba(8, 124, 119, 0.1);
}
.auth-card .auth-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: none;
  color: inherit;
}
.auth-card .auth-card__icon .auth-icon {
  width: 22px;
  height: 22px;
}
.auth-card .auth-card__title {
  margin: 4px 0 0;
  font-size: 30px;
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  text-align: left;
  color: var(--color-text);
}
.auth-card .auth-card__lead {
  margin: -8px 0 6px;
  font-size: var(--fs-base);
  color: var(--color-text-muted);
}
.auth-card .auth-field__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.auth-card .auth-field__label {
  display: block;
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}
.auth-card .auth-toggle {
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  cursor: pointer;
}
.auth-card .auth-input {
  display: block;
  width: 100%;
  max-width: none;
  height: 52px;
  padding: 0 18px;
  font: inherit;
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.auth-card .auth-input:focus {
  outline: 0;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(8, 124, 119, 0.15);
}
.auth-card .auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-lg);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-primary);
  cursor: pointer;
  transition: background var(--transition);
}
.auth-card .auth-submit:hover {
  background: var(--color-primary-dark);
}
.auth-card .auth-submit:focus-visible,
.auth-card .auth-toggle:focus-visible,
.auth-card .auth-forgot:focus-visible,
.auth-card .auth-register a:focus-visible {
  outline: 3px solid rgba(8, 124, 119, 0.35);
  outline-offset: 2px;
}
.auth-card .auth-card__note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--color-text-muted);
}
.auth-card .auth-card__note a {
  font-weight: 600;
  color: var(--color-primary);
}
.auth-card .auth-forgot {
  justify-self: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
}
.auth-card .auth-register {
  text-align: center;
  color: var(--color-text-muted);
}
.auth-card .auth-register a {
  font-weight: 600;
  color: var(--color-primary);
}
/* errors of the login (core errors.tpl markup) */
.auth-card .alert {
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  color: var(--color-danger);
  background: var(--color-danger-light);
}
.auth-card .alert p {
  margin: 0 0 4px;
}
.auth-card .alert ol {
  margin: 0;
  padding-left: 18px;
}
.auth-card .alert a {
  color: inherit;
  text-decoration: underline;
}

@media (max-width: 560px) {
  /* app look: no card, large touch targets, pill button; the account block of the header is left out (the form is the page) */
  #authentication #page,
  #module-elpcontentform-landingpage #page {
    background: var(--color-bg);
  }
  #authentication #header .site-header__account--guest,
  #module-elpcontentform-landingpage #header .site-header__account--guest {
    display: none;
  }
  #authentication .columns-container,
  #module-elpcontentform-landingpage .columns-container {
    align-items: flex-start;
    padding: 28px max(20px, env(safe-area-inset-right)) calc(40px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  }
  .auth-card {
    max-width: none;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .auth-card .auth-card__form {
    gap: 18px;
  }
  .auth-card .auth-card__icon {
    display: none;
  }
  .auth-card .auth-card__title {
    margin: 0;
    font-size: 28px;
  }
  .auth-card .auth-card__lead {
    margin: -10px 0 8px;
  }
  .auth-card .auth-field__label {
    margin-bottom: 7px;
    font-size: 14px;
  }
  .auth-card .auth-toggle {
    margin-bottom: 7px;
  }
  .auth-card .auth-input {
    height: 54px;
    padding: 0 16px;
    border-radius: 14px;
  }
  .auth-card .auth-submit {
    height: 54px;
    margin-top: 6px;
    border-radius: var(--radius-full);
  }
  .auth-card .auth-card__note {
    font-size: var(--fs-sm);
    text-align: center;
  }
  .auth-card .auth-register {
    margin-top: 4px;
    padding-top: 18px;
    font-size: 14px;
    border-top: 1px solid var(--color-border);
  }
}

