* {
    box-sizing: border-box;
}

.auth-modern-page {
    min-height: 100vh;
    margin: 0;
    color: #152440;
    background: #f4f8ff;
    font-family: "Inter", Arial, sans-serif;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(360px, 37vw) minmax(0, 1fr);
    min-height: 100vh;
    width: 100%;
}

.auth-aside {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 52px 48px;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 78% 64%, rgba(36, 134, 255, 0.2) 0, rgba(36, 134, 255, 0) 24%),
        linear-gradient(150deg, rgba(5, 38, 88, 0.94), rgba(3, 16, 39, 0.99)),
        url("../img/background.jpg") center center / 460px auto repeat;
}

.auth-aside::before {
    content: "";
    position: absolute;
    inset: auto -90px -140px -90px;
    height: 430px;
    background:
        radial-gradient(circle at 52% 45%, rgba(51, 150, 255, 0.36), rgba(51, 150, 255, 0) 36%),
        repeating-linear-gradient(90deg, rgba(69, 156, 255, 0.08) 0 2px, transparent 2px 12px);
    transform: rotate(-8deg);
}

.auth-aside-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 18px;
}

.auth-shield-mark {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(99, 170, 255, 0.84);
    border-radius: 20px;
    box-shadow: 0 0 32px rgba(34, 125, 255, 0.35);
}

.auth-shield-mark img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.auth-aside-brand strong,
.auth-aside-brand span {
    display: block;
}

.auth-aside-brand strong {
    font-size: 32px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: 0;
}

.auth-aside-brand span {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.auth-aside-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 30px;
    margin-top: 96px;
    max-width: 420px;
}

.auth-aside-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.auth-aside-item > i {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    color: #66a7ff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(115, 177, 255, 0.18);
    border-radius: 8px;
    font-size: 27px;
    box-shadow: inset 0 0 24px rgba(63, 143, 255, 0.14);
}

.auth-aside-item strong,
.auth-aside-item span {
    display: block;
}

.auth-aside-item strong {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
}

.auth-aside-item span {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    line-height: 1.38;
}

.auth-lock-visual {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(390px, 85%);
    aspect-ratio: 1;
    margin: auto auto 16px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(69, 171, 255, 0.36), rgba(69, 171, 255, 0.06) 45%, transparent 68%);
}

.auth-lock-ring {
    display: grid;
    place-items: center;
    width: 190px;
    height: 190px;
    color: #d8ecff;
    background: linear-gradient(145deg, rgba(42, 142, 255, 0.96), rgba(2, 52, 118, 0.96));
    border: 1px solid rgba(166, 211, 255, 0.72);
    border-radius: 48px;
    box-shadow: 0 32px 82px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.36);
    transform: rotate(-10deg);
}

.auth-lock-ring i {
    font-size: 86px;
    transform: rotate(10deg);
    text-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.auth-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 54px 42px 36px;
    background:
        radial-gradient(circle at 50% 20%, rgba(24, 111, 255, 0.09), transparent 34%),
        #f7fbff;
}

.auth-language {
    position: absolute;
    top: 26px;
    right: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 14px;
    color: #243654;
    background: #ffffff;
    border: 1px solid #d8e2ef;
    border-radius: 7px;
    box-shadow: 0 8px 24px rgba(30, 56, 96, 0.08);
    font-size: 15px;
    font-weight: 700;
}

.auth-language::before {
    content: "";
    width: 18px;
    height: 14px;
    background: linear-gradient(90deg, #1a5dcc 0 33%, #fff 33% 66%, #ef3038 66%);
    border: 1px solid #d5dcea;
    border-radius: 2px;
}

.auth-card {
    width: min(100%, 730px);
    padding: 36px 52px 42px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #dbe5f2;
    border-radius: 8px;
    box-shadow: 0 28px 80px rgba(22, 50, 91, 0.16);
}

.auth-card-header {
    margin-bottom: 30px;
    padding-bottom: 28px;
    border-bottom: 1px solid #dbe5f2;
    text-align: center;
}

.auth-card-emblem {
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    margin: 0 auto 18px;
    border: 2px solid #1d63d4;
    border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(29, 99, 212, 0.08);
}

.auth-card-emblem img {
    width: 68px;
    height: 68px;
    object-fit: contain;
}

.auth-card h1 {
    margin: 0;
    color: #07316d;
    font-size: 32px;
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: 0;
}

.auth-card p {
    margin: 10px 0 0;
    color: #65728a;
    font-size: 18px;
}

.auth-alert {
    margin-bottom: 22px;
    border-radius: 6px;
}

.auth-form {
    display: grid;
    gap: 20px;
}

.auth-field label {
    display: block;
    margin-bottom: 9px;
    color: #172b4c;
    font-size: 15px;
    font-weight: 700;
}

.auth-input {
    display: flex;
    align-items: center;
    min-height: 54px;
    background: #ffffff;
    border: 1px solid #c7d3e3;
    border-radius: 5px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.auth-input:focus-within {
    border-color: #155bd8;
    box-shadow: 0 0 0 3px rgba(21, 91, 216, 0.13);
}

.auth-input i {
    width: 56px;
    color: #4e5f7a;
    text-align: center;
    font-size: 18px;
}

.auth-input input {
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: 0 16px 0 0;
    color: #152440;
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 16px;
}

.auth-input input::placeholder {
    color: #7c899f;
}

.auth-turnstile {
    overflow: hidden;
}

.auth-security-check {
    margin-top: -2px;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #172b4c;
    font-size: 15px;
    font-weight: 700;
}

.auth-checkbox input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #155bd8;
}

.auth-link {
    color: #145ed8;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.auth-link:hover,
.auth-link:focus {
    color: #0b3f9d;
    text-decoration: underline;
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 56px;
    width: 100%;
    color: #ffffff;
    background: linear-gradient(180deg, #1268e8, #064bc4);
    border: 1px solid #0c53cc;
    border-radius: 5px;
    box-shadow: 0 10px 24px rgba(12, 83, 204, 0.22);
    font-size: 18px;
    font-weight: 700;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.auth-submit:hover,
.auth-submit:focus {
    filter: brightness(0.98);
    box-shadow: 0 14px 28px rgba(12, 83, 204, 0.28);
    transform: translateY(-1px);
}

.auth-divider {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin: 30px 0;
}

.auth-divider span {
    height: 1px;
    background: #dbe5f2;
}

.auth-divider em {
    color: #6b7890;
    font-style: normal;
    font-weight: 700;
}

.auth-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 56px;
    width: 100%;
    color: #145ed8;
    background: #ffffff;
    border: 1px solid #145ed8;
    border-radius: 5px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
}

.auth-secondary-action:hover,
.auth-secondary-action:focus {
    color: #0b3f9d;
    background: #f2f7ff;
    text-decoration: none;
}

.auth-footnote {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin-top: 28px;
    color: #69758a;
    text-align: center;
    font-size: 14px;
}

.auth-footnote i {
    color: #145ed8;
}

.auth-footnote small {
    display: block;
    font-size: 13px;
}

@media (max-width: 1080px) {
    .auth-shell {
        grid-template-columns: minmax(320px, 40vw) minmax(0, 1fr);
    }

    .auth-aside {
        padding: 38px 30px;
    }

    .auth-aside-brand strong {
        font-size: 26px;
    }

    .auth-card {
        padding: 34px 36px 38px;
    }
}

@media (max-width: 860px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-panel {
        order: 1;
        min-height: auto;
        padding: 78px 18px 30px;
    }

    .auth-aside {
        order: 2;
        min-height: auto;
        padding: 30px 22px 40px;
    }

    .auth-aside-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
        max-width: none;
        margin-top: 30px;
    }

    .auth-aside-item {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .auth-aside-item > i {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }

    .auth-lock-visual {
        display: none;
    }
}

@media (max-width: 560px) {
    .auth-panel {
        padding: 70px 12px 22px;
    }

    .auth-language {
        top: 14px;
        right: 14px;
        min-height: 38px;
        padding: 8px 11px;
        font-size: 13px;
    }

    .auth-card {
        padding: 24px 18px 26px;
    }

    .auth-card-header {
        margin-bottom: 22px;
        padding-bottom: 22px;
    }

    .auth-card-emblem {
        width: 78px;
        height: 78px;
    }

    .auth-card-emblem img {
        width: 56px;
        height: 56px;
    }

    .auth-card h1 {
        font-size: 27px;
    }

    .auth-card p {
        font-size: 15px;
    }

    .auth-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-aside-brand {
        align-items: flex-start;
    }

    .auth-shield-mark {
        width: 58px;
        height: 58px;
        border-radius: 16px;
    }

    .auth-shield-mark img {
        width: 44px;
        height: 44px;
    }

    .auth-aside-brand strong {
        font-size: 23px;
    }

    .auth-aside-brand span {
        font-size: 12px;
        letter-spacing: 1px;
    }

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