/*
 * LinkSocialDO Auth V2
 * Scoped to login/register pages. Does not alter dashboard or landing styles.
 */

.ls-auth-body {
    min-height: 100vh;
    background: #f4f8f7 !important;
    color: #0d1f24;
}

.ls-auth-body .ls-auth-main {
    min-height: 100vh;
    padding: 0 !important;
}

.ls-auth {
    --ls-auth-ink: #0d1f24;
    --ls-auth-muted: #68797d;
    --ls-auth-primary: #20b8ad;
    --ls-auth-primary-dark: #087f79;
    --ls-auth-soft: #e8faf8;
    --ls-auth-line: rgba(13, 31, 36, .10);
    --ls-auth-dark: #0d282c;
    min-height: 100vh;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ls-auth *, .ls-auth *::before, .ls-auth *::after { box-sizing: border-box; }

.ls-auth-shell {
    width: min(1180px, 100%);
    min-height: 720px;
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    overflow: hidden;
    border: 1px solid rgba(13, 31, 36, .07);
    border-radius: 32px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(14, 55, 58, .12);
}

/* Left product showcase */
.ls-auth-showcase {
    position: relative;
    overflow: hidden;
    min-width: 0;
    padding: 48px 52px 42px;
    display: flex;
    flex-direction: column;
    color: #fff;
    background:
        radial-gradient(circle at 82% 18%, rgba(72, 228, 214, .18), transparent 31%),
        radial-gradient(circle at 12% 86%, rgba(32, 184, 173, .18), transparent 28%),
        linear-gradient(145deg, #0b2327 0%, #0c3437 52%, #0d5d5a 100%);
}

.ls-auth-showcase::before,
.ls-auth-showcase::after {
    content: '';
    position: absolute;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
}

.ls-auth-showcase::before {
    width: 520px;
    height: 520px;
    right: -255px;
    top: -170px;
}

.ls-auth-showcase::after {
    width: 330px;
    height: 330px;
    left: -205px;
    bottom: -120px;
}

.ls-auth-wordmark {
    position: relative;
    z-index: 4;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #fff !important;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -.025em;
    text-decoration: none !important;
}

.ls-auth-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: #2ed1c4;
    color: #0c3336;
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

.ls-auth-showcase-copy {
    position: relative;
    z-index: 3;
    max-width: 470px;
    margin-top: 60px;
}

.ls-auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0d8b84;
    font-size: .68rem;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ls-auth-showcase .ls-auth-kicker { color: #60ded3; }

.ls-auth-showcase-copy h2 {
    max-width: 470px;
    margin: 13px 0 16px;
    color: #fff;
    font-size: clamp(2.35rem, 3vw, 3.65rem);
    line-height: .99;
    letter-spacing: -.055em;
    font-weight: 800;
}

.ls-auth-showcase-copy p {
    max-width: 430px;
    margin: 0;
    color: #b9d0d1;
    font-size: .98rem;
    line-height: 1.72;
}

.ls-auth-product-visual {
    position: relative;
    z-index: 3;
    flex: 1;
    min-height: 300px;
    margin: 28px 0 18px;
}

.ls-auth-card-preview {
    position: absolute;
    z-index: 3;
    left: 10px;
    top: 82px;
    width: 300px;
    height: 178px;
    overflow: hidden;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.055));
    box-shadow: 0 28px 60px rgba(0,0,0,.24);
    backdrop-filter: blur(12px);
    transform: rotate(-6deg);
}

.ls-auth-card-preview::before {
    content: '';
    position: absolute;
    width: 210px;
    height: 210px;
    right: -95px;
    top: -110px;
    border-radius: 50%;
    background: rgba(51, 217, 204, .13);
}

.ls-auth-card-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #eafafa;
    font-size: .73rem;
    font-weight: 800;
}

.ls-auth-card-brand span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #34d6c9;
    box-shadow: 0 0 0 5px rgba(52,214,201,.12);
}

.ls-auth-card-person {
    position: absolute;
    left: 22px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
}

.ls-auth-card-person small {
    margin-bottom: 5px;
    color: #72c5c1;
    font-size: .55rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ls-auth-card-person strong { color: #fff; font-size: .96rem; }
.ls-auth-card-person span { color: #9fc3c4; font-size: .65rem; }

.ls-auth-card-preview > img {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 72px;
    height: 72px;
    padding: 5px;
    border-radius: 10px;
    background: #fff;
}

.ls-auth-phone-preview {
    position: absolute;
    z-index: 4;
    right: 22px;
    top: 6px;
    width: 190px;
    height: 360px;
    padding: 9px;
    overflow: hidden;
    border: 4px solid #071215;
    border-radius: 31px;
    background: #f7fbfa;
    color: #17363a;
    text-align: center;
    box-shadow: 0 28px 65px rgba(0,0,0,.31);
    transform: rotate(4deg);
}

.ls-auth-phone-notch {
    position: absolute;
    z-index: 6;
    left: 50%;
    top: 9px;
    width: 54px;
    height: 13px;
    border-radius: 999px;
    background: #071215;
    transform: translateX(-50%);
}

.ls-auth-phone-cover {
    height: 70px;
    margin: -9px -9px 0;
    background: linear-gradient(135deg, #22c7ba, #0c7772);
}

.ls-auth-phone-avatar {
    width: 58px;
    height: 58px;
    margin: -29px auto 8px;
    border: 4px solid #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #dcf6f3;
    color: #0b817a;
    font-size: .8rem;
    font-weight: 900;
}

.ls-auth-phone-preview > strong { display: block; font-size: .78rem; }
.ls-auth-phone-preview > small { display: block; margin-top: 2px; color: #7c8c8e; font-size: .55rem; }

.ls-auth-phone-save {
    margin: 15px 6px 11px;
    padding: 9px 7px;
    border-radius: 9px;
    background: #20b8ad;
    color: #fff;
    font-size: .55rem;
    font-weight: 800;
}

.ls-auth-phone-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 0 6px;
}

.ls-auth-phone-links span {
    height: 34px;
    border: 1px solid rgba(13,31,36,.07);
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: #fff;
    color: #15978f;
    box-shadow: 0 4px 12px rgba(15,54,58,.05);
}

.ls-auth-benefits {
    position: relative;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 9px 18px;
    color: #c2d8d8;
    font-size: .69rem;
    font-weight: 700;
}

.ls-auth-benefits span { display: inline-flex; align-items: center; gap: 7px; }
.ls-auth-benefits i { color: #4bddcf; font-size: .58rem; }

/* Right form */
.ls-auth-form-panel {
    min-width: 0;
    padding: 54px 66px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

.ls-auth-form-wrap { width: 100%; max-width: 445px; margin: 0 auto; }
.ls-auth-mobile-brand { display: none; }

.ls-auth-heading { margin-bottom: 32px; }

.ls-auth-heading h1 {
    margin: 10px 0 10px;
    color: var(--ls-auth-ink);
    font-size: clamp(2.05rem, 3vw, 2.7rem);
    line-height: 1.04;
    letter-spacing: -.045em;
    font-weight: 800;
}

.ls-auth-heading p {
    margin: 0;
    max-width: 410px;
    color: var(--ls-auth-muted);
    font-size: .93rem;
    line-height: 1.65;
}

.ls-auth-form .form-group { margin-bottom: 18px; }

.ls-auth-field > label,
.ls-auth-label-row > label {
    margin: 0 0 8px;
    color: #294348;
    font-size: .78rem;
    font-weight: 800;
}

.ls-auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ls-auth-label-row > a,
.ls-auth-label-row > span {
    margin-bottom: 8px;
    color: #7a8b8e;
    font-size: .68rem;
    font-weight: 700;
}

.ls-auth-label-row > a { color: var(--ls-auth-primary-dark); }

.ls-auth-input-wrap { position: relative; }

.ls-auth-input-icon {
    position: absolute;
    z-index: 3;
    left: 17px;
    top: 50%;
    width: 18px;
    display: grid;
    place-items: center;
    color: #8ca0a3;
    font-size: .82rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.ls-auth-input-wrap .form-control {
    height: 54px;
    padding: 0 47px 0 48px;
    border: 1px solid #dce6e5;
    border-radius: 13px;
    background: #fbfdfd;
    color: #17363a;
    font-size: .86rem;
    box-shadow: none !important;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.ls-auth-input-wrap .form-control::placeholder { color: #a3b0b2; }

.ls-auth-input-wrap .form-control:focus {
    border-color: rgba(32,184,173,.68);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(32,184,173,.09) !important;
}

.ls-auth-input-wrap .form-control.is-invalid { border-color: #dc3545; }

.ls-password-toggle {
    position: absolute;
    z-index: 4;
    right: 9px;
    top: 50%;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: transparent;
    color: #819194;
    cursor: pointer;
    transform: translateY(-50%);
}

.ls-password-toggle:hover { background: #edf7f5; color: var(--ls-auth-primary-dark); }

.ls-auth-options { margin: 2px 0 20px; }
.ls-auth-options .custom-control-label,
.ls-auth-terms .custom-control-label {
    color: #627579;
    font-size: .74rem;
    line-height: 1.55;
}

.ls-auth .custom-control-input:checked ~ .custom-control-label::before {
    border-color: var(--ls-auth-primary);
    background-color: var(--ls-auth-primary);
}

.ls-auth-terms {
    margin: 4px 0 21px;
    padding: 14px 14px 14px 40px;
    border: 1px solid #e1eae9;
    border-radius: 12px;
    background: #f8fbfa;
}

.ls-auth-terms .custom-control-label::before,
.ls-auth-terms .custom-control-label::after { left: -1.7rem; top: .1rem; }
.ls-auth-terms a { color: var(--ls-auth-primary-dark); font-weight: 700; }

.ls-auth-submit {
    width: 100%;
    min-height: 54px;
    padding: 0 18px;
    border: 1px solid var(--ls-auth-primary);
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--ls-auth-primary);
    color: #fff !important;
    font-size: .86rem;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(32,184,173,.20);
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.ls-auth-submit:hover {
    background: #179f96;
    border-color: #179f96;
    transform: translateY(-1px);
    box-shadow: 0 15px 32px rgba(32,184,173,.25);
}

.ls-auth-submit i { font-size: .7rem; }

.ls-auth-divider {
    position: relative;
    margin: 27px 0 18px;
    text-align: center;
}

.ls-auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #e7eeed;
}

.ls-auth-divider span {
    position: relative;
    z-index: 2;
    padding: 0 12px;
    background: #fff;
    color: #94a1a3;
    font-size: .67rem;
    font-weight: 700;
}

.ls-auth-socials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ls-auth-social-btn {
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #dfe8e7;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: #fff;
    color: #3d555a !important;
    font-size: .73rem;
    font-weight: 800;
    text-decoration: none !important;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.ls-auth-social-btn:hover {
    border-color: rgba(32,184,173,.34);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(13,31,36,.06);
}

.ls-auth-social-btn img { width: 18px; height: 18px; }

.ls-auth-secondary-links { margin-top: 18px; text-align: center; }
.ls-auth-secondary-links a { color: #75878a; font-size: .7rem; font-weight: 700; }

.ls-auth-switch {
    margin-top: 27px;
    padding-top: 22px;
    border-top: 1px solid #edf1f1;
    color: #718286;
    font-size: .78rem;
    text-align: center;
}

.ls-auth-switch a { color: var(--ls-auth-primary-dark); font-weight: 900; }
.ls-auth-switch > span { margin-right: 5px; }

.ls-auth-back {
    width: fit-content;
    margin: 20px auto 0;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #93a0a2 !important;
    font-size: .68rem;
    font-weight: 700;
    text-decoration: none !important;
}

.ls-auth-back:hover { color: var(--ls-auth-primary-dark) !important; }

.ls-auth .alert { border: 0; border-radius: 12px; font-size: .78rem; }
.ls-auth .invalid-feedback { margin-top: 6px; font-size: .7rem; }

.ls-auth-captcha {
    overflow: hidden;
    padding: 12px;
    border: 1px solid #e2e9e8;
    border-radius: 12px;
    background: #fafcfc;
}

/* Register gets a little more vertical room on smaller desktop displays */
.ls-auth-register .ls-auth-shell { min-height: 790px; }
.ls-auth-register .ls-auth-showcase-copy { margin-top: 52px; }
.ls-auth-register .ls-auth-form-panel { padding-top: 42px; padding-bottom: 42px; }

@media (max-width: 991.98px) {
    .ls-auth { padding: 22px; }
    .ls-auth-shell { grid-template-columns: .88fr 1.12fr; min-height: 690px; }
    .ls-auth-showcase { padding: 38px 34px; }
    .ls-auth-showcase-copy { margin-top: 48px; }
    .ls-auth-showcase-copy h2 { font-size: 2.45rem; }
    .ls-auth-product-visual { min-height: 280px; transform: scale(.88); transform-origin: left center; margin-right: -55px; }
    .ls-auth-form-panel { padding: 44px 40px; }
}

@media (max-width: 767.98px) {
    .ls-auth-body { background: #fff !important; }
    .ls-auth { min-height: 100vh; padding: 0; display: block; }
    .ls-auth-shell,
    .ls-auth-register .ls-auth-shell {
        min-height: 100vh;
        display: block;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .ls-auth-showcase { display: none; }

    .ls-auth-form-panel {
        min-height: 100vh;
        padding: 28px 24px 36px;
        justify-content: flex-start;
    }

    .ls-auth-mobile-brand {
        margin-bottom: 48px;
        display: flex;
        justify-content: center;
    }

    .ls-auth-mobile-brand img { max-width: 180px; max-height: 44px; }
    .ls-auth-mobile-brand strong { color: #102c30; font-size: 1.35rem; }
    .ls-auth-form-wrap { max-width: 480px; }
    .ls-auth-heading { margin-bottom: 27px; }
    .ls-auth-heading h1 { font-size: 2.25rem; }
}

@media (max-width: 420px) {
    .ls-auth-form-panel { padding-left: 20px; padding-right: 20px; }
    .ls-auth-mobile-brand { margin-bottom: 38px; }
    .ls-auth-heading h1 { font-size: 2rem; }
    .ls-auth-heading p { font-size: .86rem; }
    .ls-auth-socials { grid-template-columns: 1fr; }
    .ls-auth-label-row > span { display: none; }
}

/* Password recovery screens */
.ls-auth-recovery .ls-auth-shell-compact {
    min-height: 680px;
}

.ls-auth-recovery .ls-auth-showcase-copy {
    margin-top: 54px;
}

.ls-auth-recovery .ls-auth-form-panel {
    padding-top: 64px;
    padding-bottom: 64px;
}

.ls-auth-recovery .ls-auth-heading {
    margin-bottom: 28px;
}

.ls-auth-recovery .ls-auth-switch {
    margin-top: 25px;
}

.ls-auth-recovery .ls-auth-switch a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

@media (max-width: 767.98px) {
    .ls-auth-recovery .ls-auth-shell-compact {
        min-height: 100vh;
    }

    .ls-auth-recovery .ls-auth-form-panel {
        padding-top: 28px;
        padding-bottom: 40px;
    }
}
