.auth-page {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(99, 70, 220, 0.28), transparent 32%),
        radial-gradient(circle at 85% 80%, rgba(220, 70, 180, 0.22), transparent 30%),
        #160d2b;

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

    font-family: inherit;
}

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

    display: grid;
    grid-template-columns: 1.05fr 0.95fr;

    overflow: hidden;

    border-radius: 28px;

    background: #ffffff;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.30);
}

.auth-visual {
    position: relative;

    min-height: 680px;

    background:
        linear-gradient(
            135deg,
            #241044 0%,
            #5f24c9 45%,
            #ef168f 100%
        );

    background-size: cover;
    background-position: center;
}

.auth-visual-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;

    justify-content: space-between;

    padding: 55px;
    
    background:
        linear-gradient(
            135deg,
            rgba(25, 8, 55, 0.78),
            rgba(102, 27, 195, 0.38),
            rgba(238, 18, 145, 0.40)
        );
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;

    color: #ffffff;

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

.auth-brand-mark {
    width: 42px;
    height: 42px;

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

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.16);

    backdrop-filter: blur(12px);
}

.auth-visual-content {
    max-width: 560px;

    color: #ffffff;
}

.auth-visual-content h1 {
    margin: 0 0 20px;

    font-size: clamp(34px, 4vw, 58px);

    line-height: 1.2;
}

.auth-visual-content p {
    margin: 0;

    font-size: 17px;
    line-height: 2;
    opacity: 0.88;
}

.auth-form-panel {
    background: #ffffff;

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

    padding: 50px;
}

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

.auth-header {
    margin-bottom: 36px;
}

.auth-header h2 {
    margin: 0 0 10px;

    font-size: 32px;
    font-weight: 800;

    color: #2b164b;
}

.auth-header p {
    margin: 0;

    color: #777;
    line-height: 1.8;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-field label {
    font-size: 14px;
    font-weight: 600;
    color: #49395c;
}

.auth-field input {
    width: 100%;
    box-sizing: border-box;

    height: 52px;

    padding: 0 16px;

    border: 1px solid #e5dff0;
    border-radius: 14px;

    outline: none;

    background: #faf9fd;

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

.auth-field input:focus {
    border-color: #7a4de8;

    background: #ffffff;

    box-shadow:
        0 0 0 4px rgba(122, 77, 232, 0.10);
}

.auth-submit {
    width: 100%;
    height: 54px;

    border: 0;
    border-radius: 16px;

    margin-top: 8px;

    cursor: pointer;

    color: #ffffff;

    font-size: 16px;
    font-weight: 700;

    background:
        linear-gradient(
            135deg,
            #7047df,
            #d91aa1
        );

    box-shadow:
        0 12px 25px rgba(130, 45, 190, 0.25);

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

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

    box-shadow:
        0 16px 30px rgba(130, 45, 190, 0.32);
}

.auth-switch {
    margin-top: 24px;

    text-align: center;

    color: #777;
}

.auth-switch a {
    color: #b31bb1;

    font-weight: 700;

    text-decoration: none;
}

.auth-errors {
    padding: 13px 15px;

    border-radius: 12px;

    color: #a51d4b;

    background: #fff0f5;

    font-size: 14px;
}

.auth-field-errors {
    color: #c12658;

    font-size: 13px;
}

@media (max-width: 850px) {

    .auth-shell {
        width: min(560px, calc(100% - 24px));

        grid-template-columns: 1fr;

        min-height: auto;
    }

    .auth-visual {
        min-height: 280px;
    }

    .auth-visual-overlay {
        padding: 32px;
    }

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

    .auth-form-panel {
        padding: 35px 25px;
    }
}
