* {
  box-sizing: border-box;
}

body.sky-auth {
  display: grid;
  min-height: 100vh;
  place-items: center;
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

.sky-auth .login-shell {
  width: min(420px, calc(100% - 32px));
  padding: 34px 28px 22px;
}

.sky-auth .register-card {
  width: min(440px, 100%);
  padding: 34px 30px 24px;
}

.sky-auth .brand {
  margin-bottom: 24px;
  text-align: center;
}

.sky-auth .brand h1 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.sky-auth .brand p {
  margin: 0;
  letter-spacing: 0.04em;
}

.sky-auth .register-card h1 {
  margin: 0 0 8px;
  text-align: center;
  font-size: 1.8rem;
}

.sky-auth .register-card .subtitle {
  margin: 0 0 26px;
}

.sky-auth label {
  display: block;
  margin: 16px 0 8px;
  font-weight: 600;
}

.sky-auth .login-shell label {
  margin: 0 0 8px;
}

.sky-auth input[type="text"],
.sky-auth input[type="password"] {
  width: 100%;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  font: inherit;
}

.sky-auth .register-card input {
  margin-bottom: 0;
  padding: 13px 15px;
}

.sky-auth input:focus {
  outline: none;
}

.sky-auth input[type="submit"],
.sky-auth .register-card button {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sky-auth .login-shell input[type="submit"] {
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

.sky-auth .register-card button {
  margin-top: 22px;
}

.sky-auth input[type="submit"]:hover,
.sky-auth .register-card button:hover {
  transform: translateY(-1px);
}

.sky-auth .meta {
  margin-top: 18px;
  text-align: center;
  font-size: 0.95rem;
}

.sky-auth .meta a,
.sky-auth .register-card a {
  font-weight: 600;
  text-decoration: none;
}

.sky-auth .login-shell .alert,
.sky-auth .register-card .message {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid;
  border-radius: 12px;
  font-size: 0.92rem;
}

.sky-auth .register-card .message {
  margin-bottom: 16px;
  padding: 12px;
}

.sky-auth .register-card .footer {
  margin-top: 20px;
  text-align: center;
}

.sky-auth .login-shell {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  width: min(940px, calc(100% - 32px));
  min-height: 570px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(186, 230, 253, .9);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(3, 61, 93, .16), 0 4px 16px rgba(3, 105, 161, .06);
}

.sky-auth .login-brand-panel {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 36px 38px 30px;
  color: #fff;
  background: linear-gradient(145deg, #075985 0%, #0369a1 54%, #0284a8 100%);
}

.sky-auth .login-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.sky-auth .login-brand:hover,
.sky-auth .login-brand:focus {
  color: #fff;
  text-decoration: none;
}

.sky-auth .login-brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 14px;
  background: rgba(255, 255, 255, .13);
  color: #fff;
}

.sky-auth .login-brand-mark svg {
  width: 30px;
  height: 30px;
}

.sky-auth .login-brand-name {
  color: #fff;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -.025em;
}

.sky-auth .login-brand-name span {
  color: #a5f3fc;
}

.sky-auth .login-brand-copy {
  position: relative;
  z-index: 1;
  max-width: 360px;
  margin: auto 0;
  padding: 52px 0;
}

.sky-auth .login-eyebrow,
.sky-auth .login-eyebrow > span {
  display: inline-flex;
  align-items: center;
}

.sky-auth .login-eyebrow {
  gap: 9px;
  color: #c9f3ff;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .16em;
}

.sky-auth .login-eyebrow > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6ee7b7;
  box-shadow: 0 0 0 4px rgba(110, 231, 183, .16);
}

.sky-auth .login-brand-copy h1 {
  margin: 22px 0 15px;
  color: #fff;
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1.12;
}

.sky-auth .login-brand-copy h1 span {
  color: #a5f3fc;
}

.sky-auth .login-brand-copy p {
  max-width: 320px;
  margin: 0;
  color: rgba(239, 250, 255, .82);
  font-size: 14px;
  line-height: 1.75;
}

.sky-auth .login-brand-note {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  color: rgba(239, 250, 255, .9);
  font-size: 12px;
  line-height: 1.5;
}

.sky-auth .login-note-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 11px;
  background: rgba(255, 255, 255, .1);
}

.sky-auth .login-note-icon svg {
  width: 19px;
  height: 19px;
}

.sky-auth .login-decoration {
  position: absolute;
  display: block;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  pointer-events: none;
}

.sky-auth .login-decoration-one {
  top: 17%;
  right: -122px;
  width: 270px;
  height: 270px;
  box-shadow: 0 0 0 26px rgba(255, 255, 255, .025), 0 0 0 54px rgba(255, 255, 255, .025);
}

.sky-auth .login-decoration-two {
  right: 12%;
  bottom: -132px;
  width: 230px;
  height: 230px;
  background: rgba(125, 211, 252, .06);
}

.sky-auth .login-form-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 48px clamp(30px, 5vw, 62px) 28px;
  background: #fff;
}

.sky-auth .login-form-heading {
  margin-bottom: 28px;
}

.sky-auth .login-form-kicker {
  color: #0369a1;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .14em;
}

.sky-auth .login-form-heading h2 {
  margin: 10px 0 8px;
  color: #12354d;
  font-size: 29px;
  font-weight: 750;
  letter-spacing: -.04em;
  line-height: 1.2;
}

.sky-auth .login-form-heading p {
  margin: 0;
  color: #607789;
  font-size: 13px;
  line-height: 1.6;
}

.sky-auth .login-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: -10px 0 20px;
  padding: 12px 13px;
  line-height: 1.5;
}

.sky-auth .login-alert-icon {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  border-radius: 50%;
  background: #fee2e2;
  font-size: 12px;
  font-weight: 800;
}

.sky-auth .login-alert.alert-success .login-alert-icon {
  background: #d1fae5;
}

.sky-auth .login-form {
  display: grid;
  gap: 19px;
}

.sky-auth .login-field {
  min-width: 0;
}

.sky-auth .login-field > label,
.sky-auth .login-label-row > label {
  margin: 0 0 8px;
  color: #24465e;
  font-size: 12px;
  font-weight: 700;
}

.sky-auth .login-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.sky-auth .login-label-row > label {
  margin: 0;
}

.sky-auth .login-inline-link {
  color: #0369a1;
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
}

.sky-auth .login-inline-link:hover {
  color: #075985;
  text-decoration: underline;
}

.sky-auth .login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.sky-auth .login-field-icon {
  position: absolute;
  z-index: 1;
  left: 15px;
  width: 19px;
  height: 19px;
  color: #668497;
  pointer-events: none;
}

.sky-auth .login-input-wrap > input[type="text"],
.sky-auth .login-input-wrap > input[type="password"] {
  width: 100%;
  height: 50px;
  min-width: 0;
  margin: 0;
  padding: 0 46px;
  border: 1px solid #d5e4ec;
  border-radius: 12px;
  outline: none;
  background: #f8fbfd;
  color: #17364b;
  font: inherit;
  font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.sky-auth .login-input-wrap > input::placeholder {
  color: #8599a7;
}

.sky-auth .login-input-wrap:focus-within > input {
  border-color: #0284c7;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, .12);
}

.sky-auth .login-input-wrap:focus-within .login-field-icon {
  color: #0369a1;
}

.sky-auth .login-captcha-row {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  padding: 8px 14px;
  border: 1px solid #d5e4ec;
  border-radius: 12px;
  background: linear-gradient(120deg, #eff9fe, #f8fbfd);
}

.sky-auth .login-captcha-code {
  color: #075985;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-style: italic;
  font-weight: 800;
  letter-spacing: .3em;
  text-decoration: line-through;
  text-decoration-color: #7dd3fc;
  user-select: none;
}

.sky-auth .login-captcha-refresh {
  color: #0369a1;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.sky-auth .login-captcha-refresh:hover {
  text-decoration: underline;
}

.sky-auth .login-input-wrap > input[name="captcha"] {
  width: 100%;
  height: 50px;
  min-width: 0;
  padding: 0 16px;
  border: 1px solid #d5e4ec;
  border-radius: 12px;
  outline: none;
  background: #f8fbfd;
  color: #17364b;
  font: inherit;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sky-auth .login-captcha-hint {
  display: block;
  margin-top: 7px;
  color: #607789;
  font-size: 11px;
}

.sky-auth .login-input-wrap:focus-within > input[name="captcha"] {
  border-color: #0284c7;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, .12);
}

.sky-auth .login-password-toggle {
  position: absolute;
  right: 7px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #668497;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.sky-auth .login-password-toggle:hover {
  background: #eaf6fd;
  color: #0369a1;
}

.sky-auth .login-password-toggle svg {
  width: 19px;
  height: 19px;
}

.sky-auth .password-icon-hide,
.sky-auth .login-password-toggle[aria-pressed="true"] .password-icon-show {
  display: none;
}

.sky-auth .login-password-toggle[aria-pressed="true"] .password-icon-hide {
  display: block;
}

.sky-auth .login-submit {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 3px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(110deg, #0369a1, #0284a8);
  box-shadow: 0 10px 22px rgba(3, 105, 161, .2);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow .18s ease, filter .18s ease, transform .18s ease;
}

.sky-auth .login-submit svg {
  width: 18px;
  height: 18px;
  transition: transform .18s ease;
}

.sky-auth .login-submit:hover {
  box-shadow: 0 13px 26px rgba(3, 105, 161, .27);
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.sky-auth .login-submit:hover svg {
  transform: translateX(3px);
}

.sky-auth .login-submit:active {
  transform: translateY(0);
}

.sky-auth .login-submit:disabled {
  cursor: wait;
  opacity: .8;
}

.sky-auth .login-register {
  margin: 24px 0 0;
  color: #607789;
  font-size: 12px;
  text-align: center;
}

.sky-auth .login-register a {
  color: #0369a1;
  font-weight: 700;
  text-decoration: none;
}

.sky-auth .login-register a:hover {
  text-decoration: underline;
}

.sky-auth .login-form-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 30px;
  padding-top: 17px;
  border-top: 1px solid #edf2f6;
  color: #8193a0;
  font-size: 10px;
  text-align: center;
}

.sky-auth .login-footer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

@media (max-width: 680px) {
  .sky-auth .login-shell {
    grid-template-columns: minmax(0, 1fr);
    width: min(560px, calc(100% - 24px));
    min-height: 0;
  }

  .sky-auth .login-brand-panel {
    min-height: 265px;
    padding: 24px 28px;
  }

  .sky-auth .login-brand-copy {
    max-width: 520px;
    margin: 20px 0 0;
    padding: 0 0 10px;
  }

  .sky-auth .login-brand-copy h1 {
    margin: 12px 0 8px;
    font-size: 30px;
  }

  .sky-auth .login-brand-copy p {
    max-width: 460px;
    font-size: 13px;
  }

  .sky-auth .login-brand-note {
    display: none;
  }

  .sky-auth .login-form-panel {
    padding: 32px 36px 26px;
  }
}

@media (max-width: 480px) {
  .sky-auth .login-shell {
    grid-template-columns: minmax(0, 1fr);
    width: min(460px, calc(100% - 24px));
    min-height: 0;
    border-radius: 22px;
  }

  .sky-auth .login-brand-panel {
    min-height: 190px;
    padding: 20px 22px 22px;
  }

  .sky-auth .login-brand-mark {
    width: 37px;
    height: 37px;
    border-radius: 12px;
  }

  .sky-auth .login-brand-mark svg {
    width: 25px;
    height: 25px;
  }

  .sky-auth .login-brand-copy {
    margin: 18px 0 0;
    padding: 0;
  }

  .sky-auth .login-brand-copy h1 {
    margin: 10px 0 7px;
    font-size: 24px;
  }

  .sky-auth .login-brand-copy p,
  .sky-auth .login-brand-note {
    display: none;
  }

  .sky-auth .login-decoration-one {
    top: -120px;
    right: -100px;
    width: 240px;
    height: 240px;
  }

  .sky-auth .login-decoration-two {
    right: 20%;
    bottom: -155px;
    width: 210px;
    height: 210px;
  }

  .sky-auth .login-form-panel {
    padding: 26px 22px 20px;
  }

  .sky-auth .login-form-heading {
    margin-bottom: 21px;
  }

  .sky-auth .login-form-heading h2 {
    font-size: 24px;
  }

  .sky-auth .login-form {
    gap: 16px;
  }

  .sky-auth .login-form-footer {
    margin-top: 23px;
  }

  .sky-auth .brand h1 {
    font-size: 1.6rem;
  }

  .sky-auth .register-card {
    padding: 28px 20px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sky-auth button,
  .sky-auth input[type="submit"] {
    transition: none;
  }
}
