:root {
    --primary: #0b9ed5;
    --primary-dark: #0577a8;
    --primary-deep: #075d87;
    --primary-soft: #eaf7fc;
    --ink: #172033;
    --muted: #718096;
    --line: #d7e2ea;
    --danger: #b42318;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    background:
        linear-gradient(135deg, rgba(11, 158, 213, .09), transparent 42%),
        #f5fafc;
}

button,
input {
    font: inherit;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 72px 76px;
    position: relative;
    overflow: hidden;
}

.login-page::before,
.login-page::after {
    position: absolute;
    content: "";
    border-radius: 50%;
    background: rgba(11, 158, 213, .055);
    pointer-events: none;
}

.login-page::before {
    width: 440px;
    height: 440px;
    right: -170px;
    top: -180px;
}

.login-page::after {
    width: 300px;
    height: 300px;
    left: -130px;
    bottom: -150px;
}

.login-shell {
    width: min(1180px, 100%);
    min-height: 620px;
    display: grid;
    grid-template-columns: 1fr .92fr;
    position: relative;
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 55px rgba(37, 73, 94, .18);
}

.welcome-panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 44px 48px 36px;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .08), transparent 42%),
        linear-gradient(145deg, var(--primary), var(--primary-deep));
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .75);
    border-radius: 50%;
}

.brand-name,
.brand-country {
    display: block;
}

.brand-name {
    font-size: 17px;
    font-weight: 700;
}

.brand-country {
    margin-top: 3px;
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
}

.welcome-copy {
    margin: 54px 0 auto;
}

.system-label {
    display: block;
    width: 100%;
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 6px;
    background: rgba(255, 255, 255, .1);
    font-size: 13px;
    font-weight: 700;
}

.welcome-copy h1 {
    max-width: 510px;
    margin: 30px 0 14px;
    font-size: clamp(32px, 3vw, 45px);
    line-height: 1.12;
    letter-spacing: 0;
}

.welcome-copy > p {
    max-width: 510px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 17px;
    line-height: 1.65;
}

.feature-list {
    display: grid;
    gap: 17px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 13px;
    color: rgba(255, 255, 255, .94);
    font-size: 16px;
}

.feature-list i {
    width: 22px;
    color: #bfefff;
    font-size: 19px;
    text-align: center;
}

.welcome-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .22);
    color: rgba(255, 255, 255, .74);
    font-size: 13px;
}

.login-version {
    padding: 6px 11px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-weight: 700;
}

.access-panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 54px 60px 36px;
    background: #fff;
}

.access-content {
    width: 100%;
    max-width: 460px;
    margin: auto;
}

.access-icon {
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    color: #fff;
    background: var(--primary);
    box-shadow: 0 8px 20px rgba(11, 158, 213, .28);
}

.access-icon i {
    font-size: 38px;
}

.access-panel h2 {
    margin: 0;
    text-align: center;
    font-size: 30px;
    line-height: 1.2;
}

.access-subtitle {
    margin: 7px 0 35px;
    color: var(--muted);
    text-align: center;
    font-size: 16px;
}

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

.form-group {
    min-width: 0;
}

.form-group label {
    display: block;
    margin-bottom: 9px;
    font-size: 14px;
    font-weight: 700;
}

.login-field {
    height: 58px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 17px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #f7fafc;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.login-field:focus-within {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(11, 158, 213, .13);
}

.login-field > i {
    color: #8aa1b2;
    font-size: 18px;
}

.login-field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 15px;
}

.login-field input::placeholder {
    color: #9aa9b7;
}

.password-toggle {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    color: #8295a5;
    background: transparent;
    cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: var(--primary-dark);
}

.login-button {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: var(--primary);
    box-shadow: 0 8px 18px rgba(11, 158, 213, .2);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .2s, box-shadow .2s;
}

.login-button:hover {
    background: var(--primary-dark);
    box-shadow: 0 10px 22px rgba(5, 119, 168, .25);
    transform: translateY(-1px);
}

.login-button:disabled {
    cursor: wait;
    opacity: .7;
    transform: none;
}

.login-error {
    margin: -4px 0 0;
    padding: 10px 12px;
    border-left: 3px solid var(--danger);
    border-radius: 4px;
    color: var(--danger);
    background: #fff1f0;
    font-size: 14px;
}

.support-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 24px;
    color: var(--primary-dark);
    font-size: 13px;
    text-align: center;
}

.mobile-footer {
    display: none;
}

.social-links {
    position: absolute;
    z-index: 2;
    right: 72px;
    bottom: 25px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.social-links a {
    color: #5e7d8e;
    line-height: 1;
    text-decoration: none;
    transition: color .2s, transform .2s;
}

.social-links a:hover {
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.social-links i {
    font-size: 18px;
}

@media (max-width: 980px) {
    .login-page {
        padding: 28px 24px 68px;
    }

    .login-shell {
        grid-template-columns: .9fr 1.1fr;
    }

    .welcome-panel {
        padding: 36px 30px 30px;
    }

    .welcome-copy h1 {
        font-size: 34px;
    }

    .feature-list li {
        font-size: 14px;
    }

    .access-panel {
        padding: 48px 36px 30px;
    }

    .social-links {
        right: 28px;
        bottom: 22px;
    }
}

@media (max-width: 760px) {
    .login-page {
        display: block;
        padding: 0;
        background: #fff;
    }

    .login-page::before,
    .login-page::after {
        display: none;
    }

    .login-shell {
        width: 100%;
        min-height: 100vh;
        display: block;
        border-radius: 0;
        box-shadow: none;
    }

    .welcome-panel {
        display: block;
        padding: 24px;
        background: var(--primary-deep);
    }

    .brand-logo {
        width: 48px;
        height: 48px;
    }

    .brand-name {
        font-size: 15px;
    }

    .welcome-copy,
    .welcome-footer {
        display: none;
    }

    .access-panel {
        min-height: calc(100vh - 96px);
        justify-content: space-between;
        padding: 42px 24px 22px;
    }

    .access-content {
        max-width: 480px;
    }

    .access-panel h2 {
        font-size: 27px;
    }

    .access-subtitle {
        margin-bottom: 30px;
    }

    .mobile-footer {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        margin-top: 42px;
        padding-top: 20px;
        border-top: 1px solid var(--line);
        color: var(--muted);
        font-size: 12px;
    }

    .social-links {
        position: static;
        justify-content: center;
        padding: 18px 24px;
        color: #fff;
        background: var(--primary-deep);
    }

    .social-links a {
        color: rgba(255, 255, 255, .85);
    }
}

@media (max-width: 420px) {
    .access-panel {
        padding-right: 18px;
        padding-left: 18px;
    }

    .access-icon {
        width: 66px;
        height: 66px;
    }

    .access-icon i {
        font-size: 32px;
    }

    .mobile-footer {
        flex-direction: column;
        gap: 6px;
    }
}
