/*
 * Login presentation only. Load after sobul-refresh.css, and add the
 * sobul-login classes to the existing login template without changing its
 * form action, method, field names, validation, messages, or links.
 */

.sobul-login {
  position: relative;
  padding: clamp(38px, 6vw, 84px) 20px;
  background:
    radial-gradient(circle at 12% 15%, rgba(75, 155, 207, .13), transparent 28%),
    radial-gradient(circle at 88% 86%, rgba(75, 155, 207, .09), transparent 33%),
    #f5f9fc;
}

.sobul-login-shell {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  max-width: 1080px;
  min-height: 540px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid #dce7ee;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(17, 48, 72, .12);
}

.sobul-login-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  min-width: 0;
  padding: clamp(34px, 4.4vw, 70px);
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #174c72, #10283f);
}

.sobul-login-intro::before {
  position: absolute;
  width: 330px;
  height: 330px;
  inset-block-end: -180px;
  inset-inline-end: -140px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;
  box-shadow: 0 0 0 46px rgba(255, 255, 255, .035),
              0 0 0 92px rgba(255, 255, 255, .025);
  content: "";
  pointer-events: none;
}

.sobul-login-intro > * {
  position: relative;
  z-index: 1;
}

.sobul-login-kicker,
.sobul-login-card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .035em;
}

.sobul-login-kicker {
  color: #a9dcf4;
}

.sobul-login-kicker::before,
.sobul-login-card-kicker::before {
  display: inline-block;
  width: 19px;
  height: 5px;
  border-radius: 4px;
  background: #d9aa54;
  content: "";
}

.sobul-login-path {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
}

.sobul-login-path span {
  display: block;
  width: 32px;
  height: 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .31);
}

.sobul-login-path span:first-child {
  width: 54px;
  background: #78c7ed;
}

.sobul-login-intro img {
  width: min(210px, 100%);
  max-height: 80px;
  object-fit: contain;
  object-position: left center;
}

html[dir="rtl"] .sobul-login-intro img {
  object-position: right center;
}

.sobul-login-intro h1,
.sobul-login-intro h2 {
  max-width: 370px;
  margin: 0;
  color: #fff;
  font-size: clamp(27px, 2.7vw, 38px);
  font-weight: 800;
  line-height: 1.4;
}

.sobul-login-intro p {
  max-width: 410px;
  margin: 0;
  color: #dfedf6;
  font-size: 16px;
  line-height: 1.85;
}

.sobul-login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(32px, 4.4vw, 66px);
}

.sobul-login-card-kicker {
  margin-bottom: 13px;
  color: #17628e;
}

.sobul-login-card h1,
.sobul-login-card h2 {
  margin: 0 0 8px;
  color: #15324e;
  font-size: clamp(27px, 2.6vw, 34px);
  font-weight: 800;
}

.sobul-login-card > p {
  margin: 0 0 28px;
  color: #4e6172;
  font-size: 15px;
}

.sobul-login-card form {
  max-width: 470px;
}

.sobul-login-card form label {
  display: inline-block;
  margin-bottom: 7px;
  color: #23394d;
  font-size: 14px;
  font-weight: 700;
}

.sobul-login-card form input[type="email"],
.sobul-login-card form input[type="text"],
.sobul-login-card form input[type="password"],
.sobul-login-card form input[type="tel"] {
  min-height: 52px;
  padding: 12px 15px;
  border: 1px solid #cbdbe5;
  border-radius: 11px;
  color: #23394d;
  background: #fff;
  font-size: 16px;
}

.sobul-login-card form input[type="email"]:focus,
.sobul-login-card form input[type="text"]:focus,
.sobul-login-card form input[type="password"]:focus,
.sobul-login-card form input[type="tel"]:focus {
  border-color: #176fa7;
  outline: 3px solid rgba(23, 111, 167, .16);
  outline-offset: 1px;
  box-shadow: none;
}

.sobul-login-card form input::placeholder {
  color: #758a9b;
  opacity: 1;
}

.sobul-login-card form button[type="submit"] {
  min-height: 52px;
  padding: 11px 22px;
  border: 1px solid #176fa7;
  border-radius: 11px;
  color: #fff;
  background: #176fa7;
  font-size: 16px;
  font-weight: 800;
  transition: background .18s ease, border-color .18s ease;
}

.sobul-login-card form button[type="submit"]:hover,
.sobul-login-card form button[type="submit"]:focus-visible {
  border-color: #10283f;
  background: #10283f;
}

.sobul-login-recover {
  text-align: end;
}

.sobul-login-text-button {
  padding: 0;
  border: 0;
  color: #17628e;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #a6c6d8;
  text-underline-offset: 4px;
  cursor: pointer;
}

.sobul-login-text-button:hover,
.sobul-login-text-button:focus-visible {
  color: #10283f;
  text-decoration-color: currentColor;
}

.sobul-login-signup {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 7px;
  color: #4e6172;
  font-size: 14px;
  text-align: center;
}

.sobul-login-card a {
  color: #17628e;
  font-weight: 700;
  text-underline-offset: 4px;
}

.sobul-login-card a:hover,
.sobul-login-card a:focus-visible {
  color: #10283f;
}

.sobul-login-card .alert {
  border-radius: 11px;
  font-size: 14px;
  line-height: 1.65;
}

.sobul-recovery-modal .modal-content {
  overflow: hidden;
  border: 1px solid #dce7ee;
  border-radius: 19px;
  box-shadow: 0 20px 55px rgba(17, 48, 72, .18);
}

.sobul-recovery-modal .modal-header,
.sobul-recovery-modal .modal-footer {
  border-color: #dce7ee;
}

.sobul-recovery-modal .modal-title {
  color: #15324e;
  font-size: 22px;
  font-weight: 800;
}

.sobul-recovery-note {
  margin-bottom: 18px;
  padding: 13px 15px;
  border: 1px solid #cde5f1;
  border-radius: 10px;
  color: #16456a;
  background: #eaf5fb;
  font-size: 14px;
  line-height: 1.65;
}

.sobul-recovery-modal .form-control {
  min-height: 50px;
  border: 1px solid #cbdbe5;
  border-radius: 10px;
  font-size: 16px;
}

.sobul-recovery-modal .form-control:focus {
  border-color: #176fa7;
  outline: 3px solid rgba(23, 111, 167, .16);
  outline-offset: 1px;
  box-shadow: none;
}

.sobul-recovery-modal button[type="submit"] {
  min-height: 47px;
  padding-inline: 19px;
  border: 1px solid #176fa7;
  border-radius: 10px;
  background: #176fa7;
  font-weight: 800;
}

.sobul-recovery-modal button[type="submit"]:hover {
  border-color: #10283f;
  background: #10283f;
}

@media (max-width: 767px) {
  .sobul-login {
    padding: 24px 15px 42px;
  }

  .sobul-login-shell {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 20px;
  }

  .sobul-login-intro {
    gap: 9px;
    padding: 27px 30px;
  }

  .sobul-login-intro h1,
  .sobul-login-intro h2 {
    font-size: 23px;
  }

  .sobul-login-intro p {
    font-size: 14px;
  }

  .sobul-login-card {
    padding: 30px;
  }
}

@media (max-width: 420px) {
  .sobul-login {
    padding-inline: 12px;
  }

  .sobul-login-intro,
  .sobul-login-card {
    padding-inline: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sobul-login-card form button[type="submit"] {
    transition: none;
  }
}
