:root {
    --navy: #1e3a5f;
    --navy-dark: #142b47;
    --navy-soft: #294d77;
    --red: #c33a30;
    --red-dark: #a92f27;
    --ink: #111827;
    --muted: #667085;
    --line: #e3e7ed;
    --surface: #ffffff;
    --background: #f4f6f9;
}

* {
    box-sizing: border-box;
}

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

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

button,
input {
    font: inherit;
}

.login-body {
    background: var(--background);
    color: var(--ink);
}

.auth-wrap {
    display: flex;
    min-height: 100vh;
}

.auth-brand {
    position: relative;
    display: flex;
    flex: 1 1 46%;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 46px 44px;
    color: #fff;
    background: linear-gradient(145deg, #294d77 0%, var(--navy) 50%, var(--navy-dark) 100%);
}

.auth-brand-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .85;
    pointer-events: none;
}

.auth-brand-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 455px;
}

.auth-logo {
    display: flex;
    width: 128px;
    height: 128px;
    align-items: center;
    justify-content: center;
    margin: 0 0 24px;
    overflow: hidden;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .17);
}

.auth-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.auth-platform-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 13px;
    padding: 6px 11px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: #d7e1ec;
    font-size: 12px;
    font-weight: 600;
}

.auth-platform-label i {
    color: #ef766c;
}

.auth-brand-title {
    margin: 0 0 10px;
    font-size: 31px;
    line-height: 1.15;
    font-weight: 750;
    letter-spacing: -.3px;
}

.auth-brand-sub {
    margin: 0 0 26px;
    color: #cbd7e5;
    font-size: 14.5px;
    line-height: 1.65;
}

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

.auth-feature {
    display: flex;
    align-items: center;
    gap: 13px;
}

.auth-feature-icon {
    display: flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 10px;
    background: rgba(255, 255, 255, .07);
    color: #f0786e;
    font-size: 14px;
}

.auth-feature > div:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.auth-feature-title {
    color: #fff;
    font-size: 13.5px;
    font-weight: 650;
}

.auth-feature-text {
    color: #9fb2c8;
    font-size: 12px;
    line-height: 1.35;
}

.auth-services {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 26px;
}

.auth-service {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 11px;
    background: rgba(255, 255, 255, .05);
    color: inherit;
    text-decoration: none;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.auth-service:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .09);
}

.auth-service-icon {
    display: flex;
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--red);
    color: #fff;
    font-size: 14px;
    box-shadow: 0 5px 13px rgba(195, 58, 48, .28);
}

.auth-service-text {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 1px;
}

.auth-service-name {
    color: #fff;
    font-size: 13px;
    font-weight: 650;
}

.auth-service-desc {
    overflow: hidden;
    color: #9fb2c8;
    font-size: 11.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-service-arrow {
    color: #7e95ae;
    font-size: 11px;
}

.auth-contacts {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding-top: 21px;
    border-top: 1px solid rgba(255, 255, 255, .11);
}

.auth-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #bdcad9;
    font-size: 12.5px;
}

.auth-contact i {
    width: 15px;
    color: #839bb5;
    text-align: center;
}

.auth-contact a {
    color: #bdcad9;
    text-decoration: none;
}

.auth-contact a:hover {
    color: #fff;
}

.auth-panel {
    display: flex;
    flex: 1 1 54%;
    align-items: center;
    justify-content: center;
    padding: 46px 32px;
    background:
        radial-gradient(circle at 90% 15%, rgba(30, 58, 95, .05), transparent 28%),
        radial-gradient(circle at 5% 90%, rgba(195, 58, 48, .045), transparent 30%),
        #f7f8fa;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 34px 34px 29px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--red);
    border-radius: 17px;
    background: var(--surface);
    box-shadow: 0 20px 48px rgba(15, 23, 42, .09);
}

.auth-card-logo {
    display: none;
}

.auth-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 17px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef2f7;
    color: var(--navy);
    font-size: 12px;
    font-weight: 650;
}

.auth-card-title {
    margin: 0 0 7px;
    color: var(--ink);
    font-size: 25px;
    font-weight: 750;
    letter-spacing: -.25px;
}

.auth-card-sub {
    margin: 0 0 23px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.6;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 17px;
    padding: 11px 13px;
    border-radius: 10px;
    font-size: 12.5px;
    line-height: 1.45;
}

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

.auth-alert-error {
    border: 1px solid #f2c5c1;
    background: #fdf0ef;
    color: #922b22;
}

.auth-alert-warning {
    border: 1px solid #f1d69a;
    background: #fff8e7;
    color: #78540b;
}

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

.auth-form label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 6px;
    color: #344054;
    font-size: 12.5px;
    font-weight: 650;
}

.auth-form label i {
    width: 14px;
    color: var(--navy);
    text-align: center;
    font-size: 11.5px;
}

.auth-input {
    position: relative;
    margin-bottom: 17px;
}

.auth-input input {
    width: 100%;
    height: 48px;
    padding: 0 43px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.auth-input input::placeholder {
    color: #a3abb7;
}

.auth-input input:hover {
    border-color: #ced4dd;
}

.auth-input input:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, .11);
}

.auth-input-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 15px;
    color: #8e9aaa;
    font-size: 13px;
    transform: translateY(-50%);
    pointer-events: none;
}

.auth-password input {
    padding-right: 46px;
}

.auth-toggle {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 8px;
    display: flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #8e9aaa;
    cursor: pointer;
    transform: translateY(-50%);
}

.auth-toggle:hover {
    background: #f3f5f7;
    color: var(--navy);
}

.auth-toggle:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 1px;
}

.auth-submit {
    display: flex;
    width: 100%;
    height: 50px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 2px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(100deg, var(--navy) 0%, #294e77 48%, var(--red) 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(30, 58, 95, .24);
    transition: filter .15s ease, transform .1s ease, box-shadow .15s ease;
}

.auth-submit:hover {
    filter: brightness(1.06);
    box-shadow: 0 10px 22px rgba(30, 58, 95, .28);
}

.auth-submit:active {
    transform: scale(.992);
}

.auth-submit:disabled {
    cursor: not-allowed;
    opacity: .55;
    filter: grayscale(.15);
    box-shadow: none;
}

.auth-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    color: #98a2b3;
    font-size: 11px;
}

.auth-secure i {
    font-size: 10px;
}

.auth-support {
    margin-top: 21px;
    padding-top: 17px;
    border-top: 1px solid #edf0f3;
    color: #8992a0;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 900px) {
    .auth-wrap {
        flex-direction: column;
    }

    .auth-brand {
        flex: none;
        padding: 28px 24px;
    }

    .auth-brand-inner {
        max-width: 600px;
    }

    .auth-logo {
        width: 82px;
        height: 82px;
        margin-bottom: 15px;
    }

    .auth-brand-title {
        font-size: 25px;
    }

    .auth-brand-sub {
        max-width: 520px;
        margin-bottom: 19px;
    }

    .auth-features {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-bottom: 20px;
    }

    .auth-feature {
        align-items: flex-start;
    }

    .auth-services {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-bottom: 20px;
    }

    .auth-contacts {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px 22px;
    }

    .auth-panel {
        flex: none;
        padding: 30px 20px 42px;
    }
}

@media (max-width: 620px) {
    .auth-brand {
        padding: 22px 18px;
    }

    .auth-logo {
        display: none;
    }

    .auth-platform-label {
        margin-bottom: 10px;
    }

    .auth-brand-title {
        font-size: 22px;
    }

    .auth-brand-sub {
        margin-bottom: 16px;
        font-size: 13px;
        line-height: 1.5;
    }

    .auth-features {
        display: none;
    }

    .auth-services {
        gap: 7px;
        margin-bottom: 16px;
    }

    .auth-service {
        padding: 9px 10px;
    }

    .auth-service-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .auth-service-desc {
        display: none;
    }

    .auth-contacts {
        display: none;
    }

    .auth-panel {
        padding: 23px 14px 32px;
    }

    .auth-card {
        max-width: 440px;
        padding: 27px 21px 24px;
        border-radius: 14px;
    }

    .auth-card-logo {
        display: flex;
        justify-content: center;
        margin-bottom: 16px;
    }

    .auth-card-logo img {
        width: 76px;
        height: 76px;
        object-fit: contain;
        border-radius: 50%;
    }

    .auth-card-title {
        font-size: 22px;
    }
}

@media (max-width: 410px) {
    .auth-brand {
        padding: 18px 15px;
    }

    .auth-services {
        grid-template-columns: 1fr;
    }

    .auth-brand-sub {
        margin-bottom: 13px;
    }

    .auth-panel {
        padding: 18px 10px 26px;
    }

    .auth-card {
        padding: 24px 17px 21px;
    }
}