/* ============================================================
   SATISFIYWORLD — AUTH UI V3 (Login + Register)
   Light, practical, mobile-first product UI; no decorative blobs.
   Scoped to .sw-auth so existing pages are unaffected.
   Uses current brand palette; does not depend on DB base_color.
   ============================================================ */
.sw-auth {
    --sw-navy: #071A3A;          /* brand / headings */
    --sw-blue: #155EEF;          /* interactive primary action */
    --sw-blue-hover: #104DCE;    /* button hover */
    --sw-muted: #64748B;         /* explanatory text */
    --sw-border: #DDE5EF;        /* field borders */
    --sw-canvas: #F4F7FB;        /* page background */
    --sw-white: #FFFFFF;         /* surface */
    --sw-danger: #DC3545;        /* field errors */
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    padding: 32px;
    background: var(--sw-canvas);
    color: var(--sw-navy);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hind Siliguri", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sw-auth, .sw-auth * { box-sizing: border-box; }
.sw-auth a { text-decoration: none; }
.sw-auth a:focus-visible, .sw-auth button:focus-visible,
.sw-auth input:focus-visible, .sw-auth select:focus-visible {
    outline: 3px solid rgba(21,94,239,.20);
    outline-offset: 2px;
}

/* OUTER PRODUCT SHELL — form + real CMS image */
.sw-auth .sw-auth__shell {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(330px, .9fr);
    width: min(100%, 1140px);
    min-height: 660px;
    background: var(--sw-white);
    border: 1px solid #E6EBF3;
    border-radius: 24px;
    box-shadow: 0 18px 65px rgba(7,26,58,.055);
    overflow: hidden;
}
.sw-auth--register .sw-auth__shell {
    width: min(100%, 1260px);
    grid-template-columns: minmax(0, 1.45fr) minmax(290px, .65fr);
    min-height: 770px;
}
.sw-auth .sw-auth__panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
}
.sw-auth .sw-auth__topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 26px 36px 12px;
}
.sw-auth .sw-auth__brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    min-height: 44px;
    background: var(--sw-navy); /* Gives light-colored CMS logos a readable surface */
    padding: 6px 10px;
    border-radius: 9px;
}
.sw-auth .sw-auth__brand img {
    display: block;
    max-width: 152px;
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.sw-auth .sw-auth__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--sw-muted);
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}
.sw-auth .sw-auth__back:hover { color: var(--sw-blue); }
.sw-auth .sw-auth__back i { font-size: 17px; }
.sw-auth .sw-auth__inner {
    width: 100%;
    max-width: 480px;
    margin: auto;
    padding: 22px 36px 48px;
}
.sw-auth--register .sw-auth__inner {
    max-width: 740px;
    padding: 20px 38px 42px;
    margin: 0 auto;
}

/* Native-app-like mode switch */
.sw-auth .sw-auth__switch {
    width: max-content;
    max-width: 100%;
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: #F0F4FA;
    border: 1px solid #E8EEF6;
    border-radius: 11px;
    margin-bottom: 28px;
}
.sw-auth .sw-auth__switch a, .sw-auth .sw-auth__switch span {
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    color: #68788F;
    border-radius: 8px;
    transition: color .18s, background .18s;
}
.sw-auth .sw-auth__switch a:hover { color: var(--sw-blue); }
.sw-auth .sw-auth__switch .is-current {
    background: var(--sw-white);
    box-shadow: 0 2px 8px rgba(7,26,58,.075);
    color: var(--sw-navy);
}
.sw-auth .sw-auth__notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    margin: 0 0 20px;
    border: 1px solid #DCE9FF;
    background: #F0F6FF;
    border-radius: 10px;
    color: #24508C;
    font-size: 13px;
    line-height: 1.45;
}
.sw-auth .sw-auth__notice i { font-size: 18px; flex: 0 0 auto; margin-top: 1px; }

/* FORM HEADING */
.sw-auth .sw-auth__intro { margin-bottom: 28px; }
.sw-auth .sw-auth__eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .11em;
    color: var(--sw-blue);
    margin: 0 0 7px;
}
.sw-auth .sw-auth__intro h1 {
    color: var(--sw-navy);
    font-size: clamp(25px, 2.7vw, 34px);
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: -.035em;
    margin: 0 0 10px;
    overflow-wrap: anywhere;
}
.sw-auth .sw-auth__intro > p:last-child {
    color: var(--sw-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* INPUT FIELDS */
.sw-auth .sw-auth__form { width: 100%; }
.sw-auth .sw-auth__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
}
.sw-auth .sw-auth__field { position: relative; min-width: 0; margin-bottom: 20px; }
.sw-auth .sw-auth__fields .sw-auth__field { margin-bottom: 0; }
.sw-auth .sw-auth__field label,
.sw-auth .sw-auth__label-row label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.4;
    color: #1B304D;
    margin: 0 0 8px;
}
.sw-auth .sw-auth__field label span { color: var(--sw-danger); }
.sw-auth .sw-auth__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.sw-auth .sw-auth__label-row > a {
    font-size: 12px;
    font-weight: 700;
    color: var(--sw-blue);
    margin-bottom: 8px;
}
.sw-auth .sw-auth__label-row > a:hover { text-decoration: underline; }
.sw-auth .sw-auth__input-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    height: 50px;
    background: #FCFDFE;
    border: 1px solid var(--sw-border);
    border-radius: 11px;
    transition: border-color .2s, box-shadow .2s;
    overflow: hidden;
}
.sw-auth .sw-auth__input-wrap:focus-within, .sw-auth .sw-auth__phone:focus-within {
    border-color: var(--sw-blue);
    box-shadow: 0 0 0 3px rgba(21,94,239,.10);
    background: #fff;
}
.sw-auth .sw-auth__input-wrap > i {
    color: #8292A8;
    font-size: 19px;
    padding-left: 14px;
    flex: 0 0 auto;
}
.sw-auth .sw-auth__input-wrap input,
.sw-auth .sw-auth__input-wrap select {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 0 12px;
    height: 100%;
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    color: #152844;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
}
.sw-auth input::placeholder { color: #99A6B7; opacity: 1; }
.sw-auth .sw-auth__input-wrap--select select { cursor: pointer; padding-right: 12px; }
.sw-auth .sw-auth__show-password {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #8292A8;
    cursor: pointer;
    font-size: 20px;
    flex: 0 0 auto;
}
.sw-auth .sw-auth__show-password:hover { color: var(--sw-blue); }
.sw-auth .sw-auth__phone {
    display: flex;
    align-items: center;
    width: 100%;
    height: 50px;
    background: #FCFDFE;
    border: 1px solid var(--sw-border);
    border-radius: 11px;
    transition: border-color .2s, box-shadow .2s;
    overflow: hidden;
}
.sw-auth .sw-auth__phone .mobile-code {
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    color: var(--sw-navy);
    padding: 0 11px;
    border-right: 1px solid var(--sw-border);
    white-space: nowrap;
}
.sw-auth .sw-auth__phone input {
    min-width: 0;
    width: 100%;
    height: 100%;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 12px;
    color: var(--sw-navy);
    font-size: 14px;
}
.sw-auth .sw-auth__field-error {
    display: block;
    color: #B42318;
    font-size: 12px;
    margin-top: 5px;
}
.sw-auth .sw-auth__field-error:empty { display: none; }

/* CHECKBOX + CAPTCHA + MAIN CTA */
.sw-auth .sw-auth__checkline {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.55;
    color: #43546B;
    cursor: pointer;
    margin: 4px 0 20px;
}
.sw-auth .sw-auth__checkline input[type="checkbox"] {
    appearance: auto;
    flex: 0 0 auto;
    accent-color: var(--sw-blue);
    height: 17px;
    width: 17px;
    margin: 1px 0 0;
    cursor: pointer;
}
.sw-auth .sw-auth__checkline span { line-height: 1.5; }
.sw-auth .sw-auth__checkline a {
    display: inline;
    color: var(--sw-blue);
    font-weight: 700;
}
.sw-auth .sw-auth__checkline a:hover { text-decoration: underline; }
.sw-auth .sw-auth__checkline--policy { margin: 18px 0; }
.sw-auth .sw-auth__captcha { margin: 15px 0 22px; min-width: 0; }
.sw-auth .sw-auth__captcha > * { max-width: 100%; }
.sw-auth .sw-auth__submit {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    height: 52px;
    width: 100%;
    border: 1px solid var(--sw-blue);
    border-radius: 11px;
    background: var(--sw-blue);
    color: #fff !important;
    font-family: inherit;
    font-size: 15px;
    font-weight: 750;
    cursor: pointer;
    transition: background .2s, transform .2s, box-shadow .2s;
    box-shadow: 0 6px 16px rgba(21,94,239,.16);
}
.sw-auth .sw-auth__submit i { font-size: 18px; }
.sw-auth .sw-auth__submit:hover { background: var(--sw-blue-hover); border-color: var(--sw-blue-hover); transform: translateY(-1px); }
.sw-auth .sw-auth__submit:active { transform: none; }
.sw-auth .sw-auth__footer-note {
    text-align: center;
    color: var(--sw-muted);
    font-size: 13px;
    margin: 22px 0 0;
}
.sw-auth .sw-auth__footer-note a { color: var(--sw-blue); font-weight: 750; }
.sw-auth .sw-auth__footer-note a:hover { text-decoration: underline; }

/* PASSWORD VALIDATOR — existing secure_password.js updates .error/.success classes */
.sw-auth .hover-input-popup { position: relative; }
.sw-auth .sw-auth__password-rules {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    bottom: auto;
    left: 0;
    width: min(320px, 100%);
    padding: 12px 15px;
    z-index: 20;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: #fff;
    border: 1px solid var(--sw-border);
    color: #43546B;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(7,26,58,.11);
}
.sw-auth .sw-auth__password-rules::after { display: none; }
.sw-auth .hover-input-popup:focus-within .sw-auth__password-rules,
.sw-auth .hover-input-popup:hover .sw-auth__password-rules { display: block; }
.sw-auth .sw-auth__password-rules p { margin: 3px 0; font-size: 12px; padding-left: 21px; position: relative; }
.sw-auth .sw-auth__password-rules p::before { position: absolute; top: 0; left: 0; font: 900 16px/1.4 "Line Awesome Free"; }
.sw-auth .sw-auth__password-rules .error { color: #9F3A39; text-decoration: line-through; }
.sw-auth .sw-auth__password-rules .error::before { content: "\f057"; color: #CB4A46; }
.sw-auth .sw-auth__password-rules .success { color: #13764B; text-decoration: none; }
.sw-auth .sw-auth__password-rules .success::before { content: "\f058"; color: #12B76A; }

/* REAL CMS IMAGE SIDEBAR (not a synthetic illustration) */
.sw-auth .sw-auth__visual {
    position: relative;
    min-width: 0;
    min-height: 100%;
    background-color: #13305B;
    background-position: center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    padding: 34px;
}
.sw-auth .sw-auth__visual-notice {
    align-self: flex-start;
    max-width: 100%;
    color: #fff;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(7,26,58,.36);
    padding: 10px 13px;
    border-radius: 11px;
    font-size: 13px;
    line-height: 1.5;
    backdrop-filter: blur(10px);
    margin: 0;
}
.sw-auth .sw-auth__visual-copy { margin-top: auto; max-width: 360px; }
.sw-auth .sw-auth__visual-tag {
    font-size: 10px;
    letter-spacing: .13em;
    font-weight: 800;
    display: inline-block;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 6px;
    color: #fff;
    margin-bottom: 18px;
}
.sw-auth .sw-auth__visual-copy h2 {
    font-size: clamp(28px, 3vw, 39px);
    letter-spacing: -.035em;
    line-height: 1.16;
    font-weight: 750;
    margin: 0 0 10px;
    color: #fff;
}
.sw-auth .sw-auth__visual-copy p {
    color: rgba(255,255,255,.80);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* REAL PHONE / TABLET SIZES */
@media (max-width: 991px) {
    .sw-auth { padding: 24px; align-items: flex-start; }
    .sw-auth .sw-auth__shell, .sw-auth--register .sw-auth__shell {
        max-width: 700px; grid-template-columns: minmax(0, 1fr); min-height: 0;
    }
    .sw-auth .sw-auth__visual { display: none; }
    .sw-auth .sw-auth__inner, .sw-auth--register .sw-auth__inner { max-width: 640px; margin: 0 auto; padding: 24px 40px 46px; }
}
@media (max-width: 600px) {
    .sw-auth { padding: 0; background: #fff; }
    .sw-auth .sw-auth__shell, .sw-auth--register .sw-auth__shell {
        width: 100%; max-width: none; border: 0; border-radius: 0; box-shadow: none;
    }
    .sw-auth .sw-auth__topbar { padding: 19px 20px 11px; }
    .sw-auth .sw-auth__brand img { max-width: 134px; max-height: 44px; }
    .sw-auth .sw-auth__back { font-size: 12px; }
    .sw-auth .sw-auth__inner, .sw-auth--register .sw-auth__inner { padding: 20px 20px 42px; }
    .sw-auth .sw-auth__switch { display: flex; width: 100%; margin-bottom: 28px; }
    .sw-auth .sw-auth__switch > * { flex: 1; }
    .sw-auth .sw-auth__intro h1 { font-size: 28px; }
    .sw-auth .sw-auth__fields { grid-template-columns: 1fr; gap: 16px; }
    .sw-auth .sw-auth__field { margin-bottom: 18px; }
    .sw-auth .sw-auth__submit { min-height: 52px; }
    .sw-auth .sw-auth__password-rules { position: relative; top: 7px; box-shadow: none; }
}

    body.sw-v2 {
        padding-bottom: 0 !important;
    }
    
