:root {
    --navy-950: #06172a;
    --navy-900: #08243f;
    --navy-800: #0c3559;
    --blue-600: #0f6fdd;
    --blue-500: #2488f5;
    --green-500: #20b86a;
    --text: #0b2340;
    --muted: #6e8199;
    --line: #dce5ee;
}

* {
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 75% 20%, rgba(25, 132, 203, 0.24), transparent 34%),
        radial-gradient(circle at 15% 78%, rgba(6, 55, 95, 0.22), transparent 30%),
        linear-gradient(118deg, #06172a 0%, #082b4b 56%, #0a4d67 100%);
}

.login-shell {
    width: min(1180px, 100%);
    min-height: 700px;
    display: grid;
    grid-template-columns: 1.03fr 0.97fr;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 34px 90px rgba(0, 12, 31, 0.42);
    background: #fff;
}

.brand-panel {
    position: relative;
    overflow: hidden;
    padding: 62px 62px 44px;
    color: #fff;
    background:
        radial-gradient(circle at 108% 0%, rgba(255, 255, 255, 0.08) 0 18%, transparent 18.2%),
        radial-gradient(circle at -10% 100%, rgba(255, 255, 255, 0.07) 0 18%, transparent 18.2%),
        linear-gradient(160deg, #061c34 0%, #0b3b64 100%);
    display: flex;
    flex-direction: column;
}

.brand-panel::after {
    content: "";
    position: absolute;
    inset: auto -12% 4% 8%;
    height: 38%;
    opacity: .24;
    background-image: radial-gradient(circle, rgba(76, 167, 255, .58) 1px, transparent 1.4px);
    background-size: 10px 10px;
    transform: rotate(-7deg);
    mask-image: linear-gradient(to right, transparent, #000 30%, #000 70%, transparent);
}

.brand-top,
.brand-copy,
.security-note {
    position: relative;
    z-index: 2;
}

.brand-logo {
    width: 330px;
    max-width: 100%;
    height: auto;
}

.brand-copy {
    margin-top: 70px;
}

.brand-copy h1 {
    margin: 0;
    font-size: clamp(42px, 4.5vw, 64px);
    line-height: 1.05;
    letter-spacing: -2px;
    font-weight: 800;
}

.brand-copy h1 span {
    color: #1789ff;
}

.brand-copy > p {
    max-width: 520px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.75;
}

.features {
    margin-top: 44px;
    display: grid;
    gap: 24px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 18px;
}

.feature-item strong,
.feature-item small,
.security-note strong,
.security-note small {
    display: block;
}

.feature-item strong {
    font-size: 17px;
    margin-bottom: 4px;
}

.feature-item small {
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
}

.feature-icon {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    position: relative;
}

.feature-icon.calendar,
.feature-icon.users {
    background: linear-gradient(150deg, #0a67d7, #0c8df5);
}

.feature-icon.mail {
    background: linear-gradient(150deg, #17a45b, #2cc879);
}

.feature-icon::before,
.feature-icon::after,
.shield::before,
.field-icon::before,
.field-icon::after,
.enter-icon::before,
.enter-icon::after,
.mini-shield::before,
.toggle-password::before,
.toggle-password::after {
    content: "";
    position: absolute;
}

.calendar::before {
    width: 23px;
    height: 20px;
    border: 2px solid #fff;
    border-radius: 4px;
    top: 18px;
}

.calendar::after {
    width: 18px;
    height: 2px;
    background: #fff;
    top: 24px;
    box-shadow: -6px -8px 0 -1px #fff, 6px -8px 0 -1px #fff;
}

.mail::before {
    width: 26px;
    height: 18px;
    border: 2px solid #fff;
    border-radius: 3px;
}

.mail::after {
    width: 17px;
    height: 17px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
    top: 14px;
}

.users::before {
    width: 10px;
    height: 10px;
    border: 2px solid #fff;
    border-radius: 50%;
    top: 13px;
    left: 21px;
    box-shadow: -11px 5px 0 -1px #fff, 11px 5px 0 -1px #fff;
}

.users::after {
    width: 25px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 15px 15px 5px 5px;
    bottom: 11px;
    left: 13px;
}

.security-note {
    margin-top: auto;
    padding-top: 34px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.security-note strong {
    font-size: 15px;
    margin-bottom: 4px;
}

.security-note small {
    color: rgba(255, 255, 255, 0.62);
}

.shield,
.mini-shield {
    display: inline-block;
    position: relative;
}

.shield {
    width: 46px;
    height: 50px;
    border: 3px solid #218eff;
    border-radius: 11px 11px 17px 17px;
}

.shield::before {
    width: 13px;
    height: 7px;
    border-left: 3px solid #218eff;
    border-bottom: 3px solid #218eff;
    transform: rotate(-45deg);
    left: 13px;
    top: 16px;
}

.login-panel {
    padding: 58px 60px 34px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 490px;
    margin: auto;
}

.login-logo {
    width: 360px;
    max-width: 100%;
    display: block;
    margin: 0 auto 48px;
}

.login-card h2 {
    margin: 0;
    text-align: center;
    font-size: 34px;
    letter-spacing: -0.7px;
}

.login-subtitle {
    text-align: center;
    color: var(--muted);
    font-size: 16px;
    margin: 10px 0 34px;
}

.field-group {
    margin-bottom: 22px;
}

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

.input-wrap {
    position: relative;
}

.input-wrap input {
    width: 100%;
    height: 58px;
    padding: 0 54px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfdff;
    color: var(--text);
    font-size: 16px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.input-wrap input:focus {
    border-color: var(--blue-500);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(36, 136, 245, .12);
}

.field-icon {
    position: absolute;
    left: 19px;
    top: 50%;
    width: 21px;
    height: 21px;
    transform: translateY(-50%);
    pointer-events: none;
}

.user-icon::before {
    width: 8px;
    height: 8px;
    border: 2px solid #6682a5;
    border-radius: 50%;
    left: 5px;
}

.user-icon::after {
    width: 16px;
    height: 8px;
    border: 2px solid #6682a5;
    border-radius: 10px 10px 3px 3px;
    left: 1px;
    bottom: 0;
}

.lock-icon::before {
    width: 14px;
    height: 11px;
    border: 2px solid #6682a5;
    border-radius: 3px;
    left: 2px;
    bottom: 0;
}

.lock-icon::after {
    width: 9px;
    height: 8px;
    border: 2px solid #6682a5;
    border-bottom: 0;
    border-radius: 7px 7px 0 0;
    left: 4.5px;
    top: 0;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    transform: translateY(-50%);
    cursor: pointer;
}

.toggle-password::before {
    width: 19px;
    height: 12px;
    border: 2px solid #6682a5;
    border-radius: 50% / 60%;
    left: 4px;
    top: 7px;
}

.toggle-password::after {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6682a5;
    left: 11px;
    top: 12px;
}

.toggle-password.visible::after {
    width: 20px;
    height: 2px;
    border-radius: 0;
    background: #6682a5;
    left: 4px;
    top: 14px;
    transform: rotate(-45deg);
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #304661;
    font-size: 14px;
    cursor: pointer;
    margin: 3px 0 24px;
}

.remember-row input {
    width: 20px;
    height: 20px;
    accent-color: var(--blue-600);
}

.login-button {
    width: 100%;
    height: 60px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(100deg, #0870df, #0752bc);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(7, 82, 188, .24);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.login-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 17px 32px rgba(7, 82, 188, .30);
}

.enter-icon {
    width: 22px;
    height: 22px;
    position: relative;
}

.enter-icon::before {
    width: 12px;
    height: 14px;
    border: 2px solid #fff;
    border-left: 0;
    border-radius: 0 4px 4px 0;
    right: 0;
    top: 2px;
}

.enter-icon::after {
    width: 10px;
    height: 10px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    left: 1px;
    top: 5px;
    box-shadow: 5px -5px 0 -4px #fff;
}

.restricted-note {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #8191a5;
    font-size: 14px;
    margin-top: 28px;
}

.mini-shield {
    width: 18px;
    height: 20px;
    border: 2px solid #7f95af;
    border-radius: 5px 5px 8px 8px;
}

.mini-shield::before {
    width: 6px;
    height: 3px;
    border-left: 2px solid #7f95af;
    border-bottom: 2px solid #7f95af;
    transform: rotate(-45deg);
    left: 4px;
    top: 6px;
}

.error-message {
    margin-bottom: 20px;
    padding: 13px 15px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    color: #b42318;
    background: #fff1f2;
    font-size: 14px;
}

.login-panel footer {
    text-align: center;
    color: #8090a5;
    font-size: 13px;
    margin-top: 36px;
}

@media (max-width: 980px) {
    body {
        padding: 18px;
    }

    .login-shell {
        grid-template-columns: 1fr;
        max-width: 660px;
    }

    .brand-panel {
        padding: 42px;
    }

    .brand-copy {
        margin-top: 42px;
    }

    .brand-copy h1 {
        font-size: 44px;
    }

    .features,
    .security-note {
        display: none;
    }

    .login-panel {
        padding: 44px 36px 30px;
    }
}

@media (max-width: 560px) {
    body {
        padding: 0;
        background: #fff;
    }

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

    .brand-panel {
        padding: 30px 24px;
    }

    .brand-logo {
        width: 260px;
    }

    .brand-copy {
        margin-top: 28px;
    }

    .brand-copy h1 {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .brand-copy > p {
        margin-top: 18px;
        font-size: 15px;
    }

    .login-panel {
        padding: 38px 24px 24px;
    }

    .login-logo {
        width: 280px;
        margin-bottom: 34px;
    }

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