:root {
    --auth-primary: #174b9e;
    --auth-primary-dark: #09265d;
    --auth-primary-soft: #edf4ff;

    --auth-text: #17243a;
    --auth-subtext: #718097;
    --auth-border: #dfe6f0;

    --auth-shadow:
        0 30px 80px rgba(15, 46, 101, 0.17);
}

.auth-body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;

    color: var(--auth-text);

    background:
        radial-gradient(
            circle at 15% 12%,
            rgba(196, 220, 255, 0.75),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #f7faff,
            #eef4fd
        );
}

.auth-home-link {
    position: fixed;
    z-index: 100;
    top: 24px;
    left: 28px;

    min-height: 43px;
    padding: 0 16px;

    display: inline-flex;
    align-items: center;
    gap: 9px;

    border: 1px solid rgba(220, 228, 240, 0.95);
    border-radius: 13px;

    color: #53647d;
    background: rgba(255, 255, 255, 0.88);

    box-shadow:
        0 9px 25px rgba(30, 62, 112, 0.08);

    backdrop-filter: blur(14px);

    font-size: 12px;
    font-weight: 750;
}

.auth-page {
    min-height: 100vh;
    padding: 34px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-shell {
    width: min(1180px, 100%);
    min-height: 720px;

    overflow: hidden;

    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(420px, 0.88fr);

    border: 1px solid rgba(218, 226, 238, 0.94);
    border-radius: 30px;

    background: #ffffff;

    box-shadow: var(--auth-shadow);
}

.auth-visual {
    position: relative;
    padding: 42px 50px 38px;

    overflow: hidden;

    display: flex;
    flex-direction: column;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(91, 145, 225, 0.72),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #174f9f,
            #08275e
        );
}

.auth-visual::before {
    content: "";

    position: absolute;
    top: -190px;
    right: -150px;

    width: 520px;
    height: 520px;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.auth-visual::after {
    content: "";

    position: absolute;
    right: 70px;
    bottom: -230px;

    width: 470px;
    height: 470px;

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
}

.auth-brand {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    gap: 13px;

    width: fit-content;
}

.auth-brand__mark,
.auth-card__brand-mark {
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;

    border-radius: 14px;
}

.auth-brand__mark {
    width: 47px;
    height: 47px;
    padding: 9px;

    border: 1px solid rgba(255, 255, 255, 0.22);

    background: rgba(255, 255, 255, 0.14);
}

.auth-brand__mark i,
.auth-card__brand-mark i {
    display: block;

    width: 7px;

    border-radius: 2px 2px 0 0;

    background: #ffffff;
}

.auth-brand__mark i:nth-child(1),
.auth-card__brand-mark i:nth-child(1) {
    height: 12px;
    opacity: 0.78;
}

.auth-brand__mark i:nth-child(2),
.auth-card__brand-mark i:nth-child(2) {
    height: 24px;
}

.auth-brand__mark i:nth-child(3),
.auth-card__brand-mark i:nth-child(3) {
    height: 17px;
    opacity: 0.9;
}

.auth-brand__text {
    display: flex;
    flex-direction: column;

    line-height: 1.08;
}

.auth-brand__text strong {
    color: #ffffff;

    font-size: 21px;
    font-weight: 900;
}

.auth-brand__text small {
    margin-top: 5px;

    color: rgba(255, 255, 255, 0.65);

    font-size: 10px;
    font-weight: 750;
}

.auth-visual__content {
    position: relative;
    z-index: 2;

    margin: auto 0;
    padding: 55px 0;
}

.auth-eyebrow {
    color: rgba(255, 255, 255, 0.56);

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.15em;
}

.auth-visual h1 {
    margin: 18px 0 0;

    font-size: clamp(40px, 4.2vw, 60px);
    font-weight: 420;
    line-height: 1.25;
    letter-spacing: -0.055em;
}

.auth-visual h1 strong {
    display: block;

    font-weight: 900;
}

.auth-visual__content > p {
    max-width: 570px;
    margin: 24px 0 0;

    color: rgba(255, 255, 255, 0.7);

    font-size: 14px;
    line-height: 1.85;
}

.auth-feature-grid {
    margin-top: 38px;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
}

.auth-feature {
    min-height: 94px;
    padding: 15px;

    display: flex;
    align-items: center;
    gap: 11px;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.auth-feature > span {
    width: 33px;
    height: 33px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    border-radius: 11px;

    color: #24538d;
    background: #ffffff;

    font-size: 9px;
    font-weight: 900;
}

.auth-feature strong,
.auth-feature small {
    display: block;
}

.auth-feature strong {
    color: #ffffff;

    font-size: 11px;
}

.auth-feature small {
    margin-top: 5px;

    color: rgba(255, 255, 255, 0.53);

    font-size: 8px;
    line-height: 1.5;
}

.auth-visual__footer {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    color: rgba(255, 255, 255, 0.45);

    font-size: 9px;
}

.auth-form-area {
    padding: 58px 55px 38px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    background:
        linear-gradient(
            155deg,
            #ffffff,
            #fbfcff
        );
}

.auth-card {
    width: min(100%, 420px);
}

.auth-card__brand {
    display: none;
    align-items: center;
    gap: 11px;
}

.auth-card__brand-mark {
    width: 42px;
    height: 42px;
    padding: 8px;

    background:
        linear-gradient(
            145deg,
            #3478df,
            #143e8b
        );

    box-shadow:
        0 11px 25px rgba(25, 73, 160, 0.23);
}

.auth-card__brand > div {
    display: flex;
    flex-direction: column;
}

.auth-card__brand strong {
    color: var(--auth-primary-dark);

    font-size: 18px;
    font-weight: 900;
}

.auth-card__brand small {
    margin-top: 3px;

    color: #78869b;

    font-size: 9px;
    font-weight: 700;
}

.auth-card__heading > span {
    color: #9b7f4b;

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.auth-card__heading h2 {
    margin: 13px 0 0;

    color: var(--auth-primary-dark);

    font-size: 29px;
    font-weight: 850;
    letter-spacing: -0.045em;
}

.auth-card__heading p {
    margin: 13px 0 0;

    color: var(--auth-subtext);

    font-size: 12px;
    line-height: 1.7;
}

.auth-form {
    margin-top: 32px;

    display: grid;
    gap: 18px;
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field__label {
    color: #45546a;

    font-size: 11px;
    font-weight: 800;
}

.auth-field__control {
    min-height: 55px;
    padding: 0 14px;

    display: flex;
    align-items: center;
    gap: 11px;

    border: 1px solid var(--auth-border);
    border-radius: 14px;

    background: #fbfcfe;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.auth-field__control:focus-within {
    border-color: #8eb1e5;

    background: #ffffff;

    box-shadow:
        0 0 0 4px rgba(44, 103, 201, 0.08);
}

.auth-field__icon {
    width: 21px;

    color: #8da5c8;

    font-size: 8px;
    text-align: center;
}

.auth-field input {
    min-width: 0;
    padding: 0;

    flex: 1;

    border: 0;
    outline: 0;

    color: var(--auth-text);
    background: transparent;

    font-size: 14px;
}

.auth-field input::placeholder {
    color: #a7b0bf;
}

.auth-password-toggle {
    padding: 7px;

    border: 0;

    color: #718096;
    background: transparent;

    font-size: 10px;
    font-weight: 800;
}

.auth-submit {
    min-height: 56px;
    margin-top: 4px;
    padding: 0 22px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 21px;

    border: 0;
    border-radius: 14px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #1b56ad,
            #0b2c69
        );

    box-shadow:
        0 15px 31px rgba(20, 66, 144, 0.23);

    font-size: 14px;
    font-weight: 850;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.auth-submit:hover {
    transform: translateY(-2px);

    box-shadow:
        0 20px 38px rgba(20, 66, 144, 0.31);
}

.auth-submit strong {
    font-size: 17px;
}

.auth-card__links {
    margin-top: 21px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    font-size: 10px;
    font-weight: 750;
}

.auth-card__links a {
    color: #607089;
}

.auth-card__links a:hover {
    color: var(--auth-primary);
}

.auth-card__links > span {
    width: 1px;
    height: 11px;

    background: #d8dee7;
}

.auth-security {
    margin-top: 25px;
    padding: 14px;

    display: flex;
    align-items: center;
    gap: 11px;

    border-radius: 13px;

    background:
        linear-gradient(
            90deg,
            #eef5ff,
            #f8fbff
        );
}

.auth-security > span {
    width: 30px;
    height: 30px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    border-radius: 50%;

    color: #ffffff;
    background: #5482c9;

    font-size: 11px;
}

.auth-security strong {
    display: block;

    color: #39577f;

    font-size: 10px;
}

.auth-security p {
    margin: 4px 0 0;

    color: #8090a5;

    font-size: 9px;
}

.auth-form-area__copyright {
    margin: 40px 0 0;

    color: #a1aab8;

    font-size: 9px;
}

.auth-flash-container {
    position: fixed;
    z-index: 300;
    top: 25px;
    right: 25px;

    width: min(400px, calc(100% - 40px));

    display: grid;
    gap: 9px;
}

.auth-flash {
    min-height: 52px;
    padding: 13px 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    border: 1px solid var(--auth-border);
    border-radius: 14px;

    background: #ffffff;
    box-shadow: var(--auth-shadow);

    font-size: 11px;
    font-weight: 750;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.auth-flash--success {
    color: #187849;
    border-color: #b9e1c9;
}

.auth-flash--danger {
    color: #ad3541;
    border-color: #efc0c5;
}

.auth-flash--warning {
    color: #94620f;
    border-color: #eed29d;
}

.auth-flash--info {
    color: #2a609d;
    border-color: #b9d1ed;
}

.auth-flash__close {
    padding: 0;

    border: 0;

    color: currentColor;
    background: transparent;

    font-size: 21px;
}

@media (max-width: 980px) {
    .auth-page {
        padding: 20px;
    }

    .auth-shell {
        min-height: auto;

        grid-template-columns: 1fr;
    }

    .auth-visual {
        min-height: 310px;
        padding: 32px;
    }

    .auth-visual__content {
        padding: 38px 0 25px;
    }

    .auth-visual h1 {
        font-size: 38px;
    }

    .auth-visual__content > p {
        max-width: 670px;
    }

    .auth-feature-grid {
        margin-top: 25px;
    }

    .auth-form-area {
        padding: 50px 35px;
    }

    .auth-home-link {
        display: none;
    }
}

@media (max-width: 650px) {
    .auth-page {
        padding: 0;

        align-items: stretch;
    }

    .auth-shell {
        min-height: 100vh;

        border: 0;
        border-radius: 0;

        box-shadow: none;
    }

    .auth-visual {
        min-height: 225px;
        padding: 25px 22px;
    }

    .auth-brand__mark {
        width: 41px;
        height: 41px;
        padding: 8px;
    }

    .auth-brand__text strong {
        font-size: 18px;
    }

    .auth-visual__content {
        padding: 32px 0 10px;
    }

    .auth-eyebrow {
        font-size: 8px;
    }

    .auth-visual h1 {
        margin-top: 12px;

        font-size: 29px;
    }

    .auth-visual__content > p {
        display: none;
    }

    .auth-feature-grid,
    .auth-visual__footer {
        display: none;
    }

    .auth-form-area {
        padding: 36px 22px 30px;

        justify-content: flex-start;
    }

    .auth-card__brand {
        display: flex;
        margin-bottom: 31px;
    }

    .auth-card__heading h2 {
        font-size: 26px;
    }

    .auth-field__control {
        min-height: 56px;
    }

    .auth-field input {
        font-size: 16px;
    }

    .auth-submit {
        min-height: 57px;
    }

    .auth-form-area__copyright {
        margin-top: 32px;
    }

    .auth-flash-container {
        top: 14px;
        right: 14px;

        width: calc(100% - 28px);
    }
}

@media (max-width: 390px) {
    .auth-visual {
        min-height: 205px;
    }

    .auth-visual h1 {
        font-size: 26px;
    }

    .auth-form-area {
        padding-right: 18px;
        padding-left: 18px;
    }

    .auth-card__links {
        gap: 10px;

        font-size: 9px;
    }
}
