body.auth-page {
    display: block;
    min-height: 100vh;
    padding: 0;
    overflow-x: hidden;
    background: #043874;
    color: #10243f;
}

body.auth-page a {
    text-decoration: none;
}

.ls-login-background {
    min-height: 100vh;
    background-image:
        linear-gradient(110deg, rgba(4, 41, 80, 0.96) 0%, rgba(5, 95, 190, 0.88) 52%, rgba(242, 249, 255, 0.84) 100%),
        var(--ls-login-image);
    background-position: center, center right;
    background-size: auto, cover;
    background-repeat: no-repeat;
}

.ls-login-shell {
    width: calc(100% - 64px);
    max-width: 1240px;
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 38px;
    padding: 34px 0 58px;
}

.ls-login-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.ls-login-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    color: #ffffff;
}

body.auth-page .ls-login-brand {
    color: #ffffff;
}

.ls-login-brand img {
    width: 76px;
    height: 76px;
    flex: 0 0 auto;
    object-fit: contain;
    border-radius: 10px;
    background: #ffffff;
    padding: 7px;
    box-shadow: 0 14px 32px rgba(2, 23, 45, 0.18);
}

.ls-login-brand span {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.ls-login-brand strong {
    display: block;
    font-size: 38px;
    line-height: 0.96;
    font-weight: 950;
    letter-spacing: 0;
    word-break: break-word;
}

.ls-login-brand small {
    display: block;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.25;
    opacity: 0.88;
}

.ls-login-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
    font-size: 14px;
    font-weight: 850;
    backdrop-filter: blur(8px);
    white-space: nowrap;
}

body.auth-page .ls-login-back {
    color: #ffffff;
}

.ls-login-back:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ls-login-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(430px, 560px);
    gap: 46px;
    align-items: center;
}

.ls-login-visual {
    display: grid;
    gap: 34px;
    color: #ffffff;
}

.ls-login-message {
    max-width: 650px;
}

.ls-login-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 999px;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.ls-login-message h1 {
    max-width: 660px;
    margin-top: 22px;
    font-size: clamp(44px, 5.6vw, 72px);
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0;
}

.ls-login-message p {
    max-width: 590px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.65;
}

.ls-login-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 780px;
}

.ls-login-points div {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.11);
}

.ls-login-points i {
    display: block;
    margin-bottom: 14px;
    color: #84dbff;
    font-size: 24px;
}

.ls-login-points span {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.48;
    font-weight: 700;
}

.ls-login-contact {
    display: flex;
    gap: 12px 24px;
    flex-wrap: wrap;
    max-width: 760px;
}

.ls-login-contact span {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.ls-login-contact i {
    width: 18px;
    margin-top: 3px;
    text-align: center;
}

.ls-login-card {
    width: 100%;
    padding: 42px 44px;
    border: 1px solid rgba(216, 230, 242, 0.96);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 28px 75px rgba(3, 30, 65, 0.28);
}

.ls-login-card__header {
    margin-bottom: 28px;
}

.ls-login-card h2 {
    color: #0867c8;
    font-size: 32px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: 0;
}

.ls-login-card p {
    margin-top: 9px;
    color: #526176;
    font-size: 15px;
    line-height: 1.55;
}

.alert {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 22px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert-danger {
    background: #fff1f1;
    border: 1px solid #ffc8c8;
    color: #9b1c1c;
}

.alert-danger i {
    margin-top: 2px;
}

.ls-user-connected {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 22px;
    background: #eaf5ff;
    color: #10243f;
    font-size: 14px;
}

.ls-user-connected a {
    color: #0867c8;
    font-weight: 850;
}

body.auth-page .ls-user-connected a {
    color: #0867c8;
}

.ls-form {
    display: grid;
    gap: 21px;
}

.input-group {
    margin-bottom: 0;
}

.input-group label {
    display: block;
    color: #10243f;
    font-size: 14px;
    font-weight: 850;
    margin-bottom: 9px;
}

.input-container,
.password-container {
    position: relative;
}

.input-field {
    width: 100%;
    min-height: 54px;
    padding: 0 48px;
    border: 1px solid #cfddea;
    border-radius: 8px;
    background: #f8fcff;
    color: #10243f;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input-field:focus {
    outline: none;
    border-color: #0867c8;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(8, 103, 200, 0.12);
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #0867c8;
    font-size: 17px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #526176;
    cursor: pointer;
}

.toggle-password:hover {
    color: #0867c8;
    background: #eaf5ff;
}

.forgot-password {
    display: inline-flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: 9px;
    color: #0867c8;
    font-size: 14px;
    font-weight: 850;
}

body.auth-page .forgot-password {
    color: #0867c8;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 0;
}

.remember-me input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    accent-color: #0867c8;
}

.remember-me label {
    color: #526176;
    font-size: 14px;
    font-weight: 750;
}

.submit-button {
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #0867c8;
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(8, 103, 200, 0.22);
    transition: transform 0.2s ease, background 0.2s ease;
}

.submit-button:hover {
    background: #0759ad;
    transform: translateY(-1px);
}

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

@media (max-width: 1060px) {
    .ls-login-shell {
        width: calc(100% - 40px);
        max-width: 760px;
        min-height: 100vh;
        gap: 30px;
        padding: 28px 0 42px;
    }

    .ls-login-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ls-login-visual {
        gap: 24px;
    }

    .ls-login-message h1 {
        font-size: clamp(38px, 8vw, 58px);
    }

    .ls-login-points {
        display: none;
    }

    .ls-login-card {
        max-width: 620px;
    }
}

@media (max-width: 620px) {
    .ls-login-background {
        background-image:
            linear-gradient(180deg, rgba(4, 48, 96, 0.96) 0%, rgba(6, 103, 200, 0.9) 52%, rgba(238, 247, 255, 0.94) 100%),
            var(--ls-login-image);
        background-position: center, center right;
    }

    .ls-login-shell {
        width: calc(100% - 24px);
        max-width: 520px;
        gap: 24px;
        padding: 22px 0 30px;
    }

    .ls-login-top {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .ls-login-brand img {
        width: 62px;
        height: 62px;
    }

    .ls-login-brand strong {
        font-size: 30px;
    }

    .ls-login-brand small {
        font-size: 11px;
    }

    .ls-login-back {
        width: 100%;
        min-height: 42px;
    }

    .ls-login-message h1 {
        font-size: 32px;
    }

    .ls-login-message p {
        font-size: 16px;
    }

    .ls-login-contact {
        display: none;
    }

    .ls-login-card {
        padding: 32px 24px;
        border-radius: 9px;
    }

    .ls-login-card h2 {
        font-size: 28px;
    }
}

@media (max-width: 520px) {
    .ls-login-shell {
        width: calc(100% - 24px);
        max-width: 430px;
    }

    .ls-login-points div {
        padding: 15px;
    }

    .ls-login-card {
        padding: 28px 20px;
    }
}

@media (max-width: 380px) {
    .ls-login-brand strong {
        font-size: 26px;
    }

    .ls-login-message h1 {
        font-size: 32px;
    }

    .input-field {
        padding-left: 44px;
        padding-right: 44px;
    }
}
