:root {
  --sza-yellow: #ffe57a;
  --sza-yellow-hover: #f4da68;
  --sza-yellow-soft: #fff9df;
  --sza-black: #111111;
  --sza-dark: #1c1c1c;
  --sza-page: #f6f7f9;
  --sza-border: #e7e8eb;
  --sza-text: #252525;
  --sza-muted: #7b7f87;
  --sza-danger: #dc3545;
  --sza-shadow: 0 22px 65px rgba(17, 17, 17, 0.10);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body.sza-login-page {
  margin: 0;
  min-height: 100vh;
  background: var(--sza-page);
  color: var(--sza-text);
  font-family: "Open Sans", sans-serif;
  overflow-x: hidden;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(420px, 46%) 1fr;
  min-height: 100vh;
}

/* ============================================================
   BRAND PANEL
============================================================ */

.login-brand-panel {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 229, 122, 0.13), transparent 28%),
    linear-gradient(145deg, #111111 0%, #191919 58%, #232323 100%);
}

.brand-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  padding: clamp(38px, 5vw, 72px);
}

.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 90px;
  padding: 18px 24px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
}

.brand-logo {
  display: block;
  width: min(245px, 100%);
  max-height: 76px;
  object-fit: contain;
}

.brand-copy {
  margin: auto 0;
  max-width: 580px;
  padding: 50px 0;
}

.brand-eyebrow,
.login-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--sza-yellow);
  color: var(--sza-black);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
}

.brand-copy h1 {
  margin: 22px 0 18px;
  color: #ffffff;
  font-size: clamp(40px, 5vw, 66px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -2.3px;
}

.brand-copy p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.8;
}

.brand-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  font-weight: 600;
}

.brand-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sza-yellow);
  box-shadow: 0 0 0 5px rgba(255, 229, 122, 0.10);
}

.brand-orb {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  pointer-events: none;
}

.brand-orb-one {
  top: -130px;
  right: -110px;
  width: 360px;
  height: 360px;
  background: rgba(255, 229, 122, 0.10);
}

.brand-orb-two {
  right: 10%;
  bottom: -140px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 229, 122, 0.12);
}

.brand-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.025;
  background-image:
    linear-gradient(rgba(255,255,255,.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.8) 1px, transparent 1px);
  background-size: 42px 42px;
}

/* ============================================================
   LOGIN PANEL
============================================================ */

.login-form-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 100vh;
  padding: 48px clamp(28px, 6vw, 90px);
  background:
    radial-gradient(circle at 95% 0%, rgba(255, 229, 122, 0.24), transparent 25%),
    var(--sza-page);
}

.login-card-wrap {
  width: 100%;
  max-width: 510px;
}

.login-card {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 4vw, 46px);
  border: 1px solid var(--sza-border);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--sza-shadow);
}

.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--sza-yellow), #f8eaa6 58%, transparent);
}

.login-heading {
  margin-bottom: 30px;
}

.login-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--sza-black);
  color: var(--sza-yellow);
  font-size: 16px;
}

.login-heading .login-eyebrow {
  margin-bottom: 13px;
  padding: 6px 10px;
  background: var(--sza-yellow-soft);
  color: #8d7b2d;
  font-size: 9px;
}

.login-heading h2 {
  margin: 0 0 8px;
  color: var(--sza-black);
  font-size: clamp(25px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.8px;
}

.login-heading p {
  margin: 0;
  color: var(--sza-muted);
  font-size: 12px;
  line-height: 1.6;
}

/* ============================================================
   FIELDS
============================================================ */

.login-field {
  margin-bottom: 19px;
}

.login-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--sza-black);
  font-size: 11px;
  font-weight: 700;
}

.login-input-wrap {
  position: relative;
}

.login-input-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 18px;
  transform: translateY(-50%);
  color: #92959b;
  font-size: 13px;
  pointer-events: none;
}

.login-input-wrap .form-control {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px 12px 48px;
  border: 1px solid var(--sza-border);
  border-radius: 13px;
  background: #fafafb;
  color: var(--sza-text);
  font-size: 12px;
  box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.login-input-wrap .form-control::placeholder {
  color: #a7a9ae;
}

.login-input-wrap .form-control:focus {
  border-color: #d7c35b;
  background: #ffffff;
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 229, 122, 0.20);
}

.login-input-wrap:focus-within .login-input-icon {
  color: var(--sza-black);
}

.form-control.is-invalid,
.is-invalid {
  border-color: var(--sza-danger) !important;
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.10) !important;
}

/* ============================================================
   OPTIONS / SWITCH
============================================================ */

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 3px 0 23px;
}

.form-check.form-switch {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 25px;
  margin: 0;
}

.form-check-input {
  cursor: pointer;
}

.form-check-input:checked {
  border-color: var(--sza-black) !important;
  background-color: var(--sza-yellow) !important;
}

.form-check-input:focus {
  border-color: #d7c35b;
  box-shadow: 0 0 0 3px rgba(255, 229, 122, 0.22);
}

.form-check-label {
  color: #666a70;
  font-size: 11px;
  cursor: pointer;
}

.secure-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #96999f;
  font-size: 10px;
  font-weight: 600;
}

.secure-login i {
  color: #8c7a2d;
}

/* ============================================================
   SIGN IN BUTTON
============================================================ */

.login-submit-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  padding: 0 19px 0 21px;
  border: 0;
  border-radius: 13px;
  background: var(--sza-black);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 12px 25px rgba(17, 17, 17, 0.14);
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.login-submit-btn i {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 9px;
  background: var(--sza-yellow);
  color: var(--sza-black);
  font-size: 10px;
}

.login-submit-btn:hover {
  transform: translateY(-1px);
  background: #202020;
}

.login-submit-btn:active {
  transform: translateY(0);
}

/* ============================================================
   SECURITY NOTE
============================================================ */

.login-security-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding: 14px 15px;
  border: 1px solid #f0e5ad;
  border-radius: 13px;
  background: var(--sza-yellow-soft);
}

.security-note-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  background: var(--sza-yellow);
  color: var(--sza-black);
  font-size: 12px;
}

.login-security-note strong,
.login-security-note span {
  display: block;
}

.login-security-note strong {
  margin-bottom: 2px;
  color: var(--sza-black);
  font-size: 10px;
  font-weight: 700;
}

.login-security-note span {
  color: #7d7350;
  font-size: 9px;
  line-height: 1.45;
}

.login-copyright {
  margin-top: 19px;
  color: #96999f;
  font-size: 10px;
  text-align: center;
}

.mobile-brand {
  display: none;
}

/* ============================================================
   ALERTS
============================================================ */

#alert-container {
  position: fixed;
  top: 20px;
  left: 50%;
  z-index: 2000;
  width: calc(100% - 32px);
  max-width: 500px;
  transform: translateX(-50%);
}

#alert-container .alert {
  border: 0;
  border-radius: 13px;
  box-shadow: 0 14px 35px rgba(17, 17, 17, 0.13);
  font-size: 12px;
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 1199.98px) {
  .login-shell {
    grid-template-columns: minmax(360px, 42%) 1fr;
  }

  .brand-content {
    padding: 42px;
  }

  .brand-copy h1 {
    font-size: 46px;
  }

  .brand-logo {
    width: 205px;
  }
}

@media (max-width: 991.98px) {
  body.sza-login-page {
    background:
      radial-gradient(circle at 90% 0%, rgba(255, 229, 122, .26), transparent 26%),
      var(--sza-page);
  }

  .login-shell {
    display: block;
    min-height: 100vh;
  }

  .login-brand-panel {
    display: none;
  }

  .login-form-panel {
    display: block;
    min-height: 100vh;
    padding: 34px 24px;
    background: transparent;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 510px;
    min-height: 86px;
    margin: 0 auto 22px;
    padding: 15px 22px;
    border: 1px solid var(--sza-border);
    border-radius: 19px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(17, 17, 17, .05);
  }

  .mobile-brand img {
    display: block;
    width: min(210px, 70%);
    max-height: 62px;
    object-fit: contain;
  }

  .login-card-wrap {
    margin: 0 auto;
  }
}

@media (max-width: 575.98px) {
  .login-form-panel {
    padding: 22px 15px;
  }

  .mobile-brand {
    min-height: 76px;
    margin-bottom: 15px;
    border-radius: 16px;
  }

  .mobile-brand img {
    width: min(185px, 68%);
    max-height: 54px;
  }

  .login-card {
    padding: 27px 20px;
    border-radius: 20px;
  }

  .login-icon {
    width: 43px;
    height: 43px;
    margin-bottom: 17px;
    border-radius: 12px;
  }

  .login-heading {
    margin-bottom: 25px;
  }

  .login-heading h2 {
    font-size: 25px;
  }

  .login-input-wrap .form-control {
    min-height: 51px;
  }

  .login-options {
    align-items: flex-start;
  }

  .secure-login {
    padding-top: 4px;
  }

  .login-submit-btn {
    min-height: 52px;
  }

  .login-security-note {
    align-items: flex-start;
  }
}

@media (max-width: 359.98px) {
  .secure-login {
    display: none;
  }

  .login-options {
    justify-content: flex-start;
  }
}

@media (max-height: 720px) and (min-width: 992px) {
  .brand-content {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .brand-logo-wrap {
    min-height: 74px;
    padding: 12px 18px;
  }

  .brand-logo {
    max-height: 55px;
  }

  .brand-copy {
    padding: 30px 0;
  }

  .brand-copy h1 {
    margin-top: 16px;
    font-size: 42px;
  }

  .login-form-panel {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .login-card {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}

/* =========================================
   PASSWORD LABEL ROW
========================================= */

.password-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.password-label-row label {
    margin-bottom: 0;
}


/* =========================================
   FORGOT PASSWORD
========================================= */

.forgot-password-btn {
    border: none;
    background: transparent;
    padding: 0;

    color: #777;
    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

.forgot-password-btn:hover {
    color: #111;
}

.forgot-password-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* =========================================
   PASSWORD VIEW BUTTON
========================================= */

.password-input-wrap {
    position: relative;
}

.password-input-wrap input {
    padding-right: 50px !important;
}

.password-toggle-btn {

    position: absolute;

    right: 12px;
    top: 50%;

    transform: translateY(-50%);

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    background: transparent;

    color: #777;

    cursor: pointer;

    z-index: 5;
}

.password-toggle-btn:hover {
    color: #111;
}

/* =========================================================
   RESET PASSWORD PAGE
========================================================= */

.reset-message {
    padding: 14px 16px;
    margin-bottom: 20px;

    border-radius: 8px;

    font-size: 13px;
    line-height: 1.5;
}


/* Success */

.reset-message.success {
    background: #edf7ed;
    border: 1px solid #c8e6c9;
    color: #1b5e20;
}


/* Error */

.reset-message.error {
    background: #fff1f1;
    border: 1px solid #ffcdd2;
    color: #b71c1c;
}


/* Password requirements */

.password-requirements {

    display: flex;
    flex-direction: column;
    gap: 7px;

    padding: 14px 16px;

    margin-bottom: 22px;

    background: #f8f8f8;

    border-radius: 8px;

    font-size: 12px;

    color: #666;
}


.password-requirements strong {

    color: #222;

    margin-bottom: 3px;
}


.password-requirements span {

    display: flex;
    align-items: center;

    gap: 8px;
}


.password-requirements i {

    color: #999;

    font-size: 9px;
}

