/* LS-CRM login screen */
:root {
    --bg: #06070e;
    --surface: #0f111c;
    --border: rgba(148, 158, 200, 0.16);
    --text: #f2f4ff;
    --muted: #9aa1bc;
    --dim: #6e7590;
    --violet: #8b7cff;
    --cyan: #38d6e6;
    --green: #34d399;
    --gradient: linear-gradient(118deg, #7b5cff 0%, #4d8bff 48%, #2fd3e6 100%);
    --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--cyan);
    text-decoration: none;
}

a:hover {
    color: #7fe8f3;
}

h1, h2, p, ul {
    margin: 0;
    padding: 0;
}

ul {
    list-style: none;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

.auth-page {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    background:
        radial-gradient(circle at 12% 12%, rgba(92, 61, 255, 0.22), transparent 38%),
        radial-gradient(circle at 88% 84%, rgba(14, 165, 183, 0.16), transparent 40%),
        var(--bg);
    overflow: hidden;
}

.auth-glow {
    position: fixed;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    opacity: 0.22;
}

.auth-glow--one {
    top: -240px;
    left: 10%;
    background: #5b3dff;
}

.auth-glow--two {
    right: -180px;
    bottom: -260px;
    background: #0ea5b7;
}

.auth-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    width: min(1180px, 100%);
    min-height: min(720px, calc(100vh - 48px));
    border: 1px solid var(--border);
    border-radius: 28px;
    background: rgba(10, 12, 21, 0.72);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.62);
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: authIn 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes authIn {
    from { opacity: 0; transform: translateY(14px) scale(0.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 38px;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 18%, rgba(56, 214, 230, 0.17), transparent 34%),
        radial-gradient(circle at 15% 82%, rgba(124, 92, 255, 0.24), transparent 42%),
        linear-gradient(150deg, #0d0f1c 0%, #0a0b14 100%);
    border-right: 1px solid var(--border);
}

.auth-visual::after {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    right: -180px;
    top: 90px;
    border: 1px solid rgba(124, 92, 255, 0.22);
    border-radius: 50%;
    box-shadow: 0 0 0 60px rgba(124, 92, 255, 0.04), 0 0 0 120px rgba(56, 214, 230, 0.025);
    pointer-events: none;
}

.auth-brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    width: fit-content;
}

.auth-brand:hover {
    color: var(--text);
}

.auth-brand__mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: var(--gradient);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.03em;
    box-shadow: 0 12px 30px rgba(100, 80, 255, 0.4);
    overflow: hidden;
}

.auth-brand__mark.brand-mark--image {
    padding: 0;
    background: rgba(255, 255, 255, 0.06);
}

.auth-brand__mark.brand-mark--image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.auth-brand__text strong {
    font-size: 18px;
    letter-spacing: -0.02em;
}

.auth-brand__text small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10.5px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.auth-visual__body {
    position: relative;
    z-index: 1;
    max-width: 480px;
    padding: 40px 0;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    padding: 6px 11px;
    border: 1px solid rgba(56, 214, 230, 0.25);
    border-radius: 999px;
    background: rgba(56, 214, 230, 0.07);
    color: #7fe8f3;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.auth-kicker .icon {
    width: 13px;
    height: 13px;
}

.auth-visual h1 {
    font-size: clamp(38px, 4.7vw, 58px);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.02;
}

.auth-visual h1 span {
    background: linear-gradient(100deg, #b7a8ff 0%, #7fe8f3 55%, #38d6e6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-visual__body > p {
    max-width: 420px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.6;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 34px;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

.auth-features li > span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: rgba(124, 92, 255, 0.13);
    color: var(--cyan);
    flex: 0 0 auto;
}

.auth-features li > span .icon {
    width: 18px;
    height: 18px;
}

.auth-features strong {
    display: block;
    font-size: 13px;
}

.auth-features small {
    display: block;
    margin-top: 1px;
    color: var(--dim);
    font-size: 11.5px;
}

.auth-visual__footer {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--dim);
    font-size: 11px;
    letter-spacing: 0.03em;
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px;
    background: linear-gradient(180deg, rgba(16, 18, 29, 0.65), rgba(10, 12, 21, 0.85));
}

.auth-card {
    width: min(390px, 100%);
}

.auth-card__head {
    margin-bottom: 26px;
}

.auth-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    color: var(--cyan);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.auth-card__head h2 {
    font-size: 30px;
    letter-spacing: -0.04em;
}

.auth-card__head p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 14px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 12.5px;
    line-height: 1.4;
}

.auth-alert .icon {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    margin-top: 1px;
}

.auth-alert--error {
    border-color: rgba(251, 113, 133, 0.35);
    background: rgba(251, 113, 133, 0.08);
    color: #fecdd3;
}

.auth-alert--success {
    border-color: rgba(52, 211, 153, 0.32);
    background: rgba(52, 211, 153, 0.08);
    color: #bbf7d0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field__label {
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.field__control {
    position: relative;
    display: flex;
    align-items: center;
}

.field__icon {
    position: absolute;
    left: 14px;
    display: grid;
    place-items: center;
    color: var(--dim);
    pointer-events: none;
}

.field__icon .icon {
    width: 18px;
    height: 18px;
}

.field__control input {
    width: 100%;
    height: 48px;
    padding: 0 46px 0 44px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-size: 13.5px;
    outline: none;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.field__control input::placeholder {
    color: var(--dim);
}

.field__control input:focus {
    border-color: rgba(56, 214, 230, 0.5);
    background: rgba(255, 255, 255, 0.045);
    box-shadow: 0 0 0 3px rgba(56, 214, 230, 0.08);
}

.field__action {
    position: absolute;
    right: 7px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--dim);
}

.field__action:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.field__action .icon {
    width: 18px;
    height: 18px;
}

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 50px;
    margin-top: 4px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    background: var(--gradient);
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 16px 40px rgba(100, 80, 255, 0.32);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 50px rgba(80, 150, 255, 0.4);
}

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

.auth-submit .icon {
    width: 18px;
    height: 18px;
}

.auth-submit.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.auth-card__footer {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: var(--dim);
    font-size: 11.5px;
}

.auth-card__footer .icon {
    width: 14px;
    height: 14px;
    margin-top: 1px;
    flex: 0 0 auto;
}

.auth-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.35;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.auth-switch .icon {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
}

.auth-switch .icon:last-child {
    margin-left: auto;
}

.auth-switch:hover {
    border-color: rgba(56, 214, 230, 0.32);
    background: rgba(56, 214, 230, 0.06);
    color: var(--text);
}

.auth-switch--accent {
    margin: 0 0 14px;
    border-color: rgba(56, 214, 230, 0.28);
    background: rgba(56, 214, 230, 0.07);
    color: #a9f0f7;
}

.auth-switch--accent:hover {
    border-color: rgba(56, 214, 230, 0.5);
    background: rgba(56, 214, 230, 0.12);
    color: #d9fbff;
}

@media (max-width: 980px) {
    .auth-shell {
        grid-template-columns: minmax(0, 1fr);
        max-width: 520px;
        min-height: auto;
    }

    .auth-visual {
        display: none;
    }

    .auth-panel {
        padding: 40px 32px;
    }
}

@media (max-width: 560px) {
    .auth-page {
        padding: 0;
        align-items: stretch;
        overflow-y: auto;
    }

    .auth-shell {
        width: 100%;
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .auth-panel {
        padding: 46px 22px;
    }

    .auth-card__head h2 {
        font-size: 27px;
    }

    .auth-card__footer {
        margin-top: 30px;
    }
}
