:root {
    --login-navy: #031c3a;
    --login-navy-deep: #02162f;
    --login-blue: #087cff;
    --login-blue-dark: #006ce8;
    --login-text: #071a38;
    --login-muted: #5f6f89;
    --login-border: #d4deea;
    --login-panel: #ffffff;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background: #ffffff;
    color: var(--login-text);
}

body {
    min-height: 100vh;
}

.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 16px;
}

.login-shell {
    width: min(1040px, 100%);
    min-height: 580px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 22px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 38% 92%, rgba(8, 124, 255, 0.22), transparent 20%),
        linear-gradient(150deg, var(--login-navy), var(--login-navy-deep));
    padding: 22px;
    box-shadow: 0 18px 52px rgba(3, 28, 58, 0.2);
    overflow: hidden;
}

.login-brand-panel {
    position: relative;
    min-height: 536px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px 42px 24px;
    color: #ffffff;
    overflow: hidden;
}

.login-brand-panel::after {
    content: "";
    position: absolute;
    right: -88px;
    bottom: -74px;
    width: 330px;
    height: 330px;
    background: url("../images/primary-icon-transparent.png") center / contain no-repeat;
    opacity: 0.12;
    filter: blur(1px) saturate(0.85);
    transform: rotate(-8deg);
}

.login-brand-content {
    position: relative;
    z-index: 1;
}

.login-logo {
    width: 330px;
    max-width: 100%;
    height: auto;
    display: block;
}

.login-tagline {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.login-tagline::after {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-left: 4px;
    border-radius: 999px;
    background: #22c55e;
    vertical-align: middle;
}

.login-hero-copy {
    max-width: 360px;
    margin-top: 34px;
}

.login-hero-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: 28px;
    line-height: 1.14;
    font-weight: 800;
    letter-spacing: 0;
}

.login-hero-copy h1 span {
    display: block;
    color: var(--login-blue);
}

.login-hero-rule {
    width: 54px;
    height: 3px;
    margin-top: 16px;
    border-radius: 999px;
    background: var(--login-blue);
}

.login-hero-copy p {
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.45;
}

.login-benefits {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.login-benefit {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    line-height: 1.35;
}

.login-benefit strong {
    display: block;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.2;
    margin-bottom: 4px;
}

.login-benefit-icon {
    width: 40px;
    height: 40px;
    border: 2px solid var(--login-blue);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-benefit-icon img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.login-network-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    position: absolute;
    right: 28px;
    bottom: 18px;
}

.login-network-brand span {
    color: #5f6f89;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.login-network-brand img {
    display: block;
    width: 78px;
    height: auto;
}

.login-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: 100%;
    min-height: 438px;
    padding: 34px 0 92px;
    border: 1px solid rgba(7, 26, 56, 0.14);
    border-radius: 18px;
    background: var(--login-panel);
    box-shadow: 0 14px 42px rgba(7, 26, 56, 0.12);
}

.login-card-inner {
    width: min(316px, calc(100% - 48px));
}

.login-heading h2 {
    margin: 0;
    color: var(--login-text);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: 0;
}

.login-heading p {
    margin: 6px 0 0;
    color: #40516d;
    font-size: 12px;
}

.login-form {
    display: grid;
    gap: 11px;
    margin-top: 22px;
}

.login-field {
    display: grid;
    gap: 6px;
    color: var(--login-text);
    font-size: 12px;
    font-weight: 800;
}

.login-input-wrap {
    position: relative;
    display: block;
}

.login-input-wrap input {
    width: 100%;
    height: 40px;
    border: 1px solid var(--login-border);
    border-radius: 7px;
    background: #ffffff;
    color: var(--login-text);
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    padding: 0 12px 0 40px;
    outline: none;
    box-shadow: 0 3px 10px rgba(7, 26, 56, 0.04);
}

.login-input-wrap input::placeholder {
    color: #8794aa;
}

.login-input-wrap input:focus {
    border-color: var(--login-blue);
    box-shadow: 0 0 0 3px rgba(8, 124, 255, 0.14);
}

.login-input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    pointer-events: none;
}

.login-input-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--login-text);
    font-size: 11px;
}

.login-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.login-remember input {
    width: 16px;
    height: 16px;
    accent-color: var(--login-blue);
}

.login-help,
.login-support span {
    color: var(--login-blue-dark);
    font-weight: 600;
}

.login-help,
.login-secondary-link {
    text-decoration: none;
}

.login-help:hover,
.login-secondary-link:hover {
    text-decoration: underline;
}

.login-submit {
    width: 100%;
    height: 42px;
    border: none;
    border-radius: 7px;
    background: linear-gradient(90deg, var(--login-blue), #006cfd);
    color: #ffffff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(8, 124, 255, 0.2);
}

.login-submit:hover {
    background: linear-gradient(90deg, #006ce8, #005ed8);
}

.login-link-button {
    text-decoration: none;
}

.login-secondary-link {
    justify-self: center;
    color: var(--login-blue-dark);
    font-size: 12px;
    font-weight: 700;
}

.login-error {
    color: #d92d20;
    font-size: 14px;
    font-weight: 700;
}

.login-success {
    border: 1px solid #bce8cf;
    border-radius: 7px;
    background: #f0fbf5;
    color: #137a45;
    font-size: 12px;
    font-weight: 800;
    padding: 10px 12px;
}

.login-error:empty,
.login-validation:empty {
    display: none;
}

.login-validation {
    color: #d92d20;
    font-size: 13px;
    font-weight: 700;
}

.login-support {
    margin: 18px 0 0;
    color: #40516d;
    font-size: 11px;
}

@media (max-width: 1040px) {
    .login-page {
        padding: 18px;
    }

    .login-shell {
        grid-template-columns: 1fr;
        gap: 24px;
        min-height: 0;
    }

    .login-brand-panel {
        min-height: 0;
        padding: 36px;
    }

    .login-hero-copy {
        margin-top: 48px;
    }

    .login-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .login-card {
        min-height: 438px;
    }
}

@media (max-width: 680px) {
    .login-page {
        justify-content: flex-start;
        padding: 0;
    }

    .login-shell {
        border-radius: 0;
        padding: 16px;
    }

    .login-brand-panel {
        padding: 28px 20px;
    }

    .login-logo {
        width: 280px;
    }

    .login-tagline {
        font-size: 11px;
        letter-spacing: 4px;
    }

    .login-hero-copy h1 {
        font-size: 32px;
    }

    .login-hero-copy p {
        font-size: 16px;
    }

    .login-benefits {
        grid-template-columns: 1fr;
    }

    .login-card {
        min-height: 0;
        padding: 34px 0 92px;
    }

    .login-card-inner {
        width: calc(100% - 40px);
    }

    .login-heading h2 {
        font-size: 24px;
    }

    .login-form {
        margin-top: 24px;
    }

    .login-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .login-network-brand {
        left: 20px;
        right: 20px;
        bottom: 24px;
        justify-content: center;
    }

}
