* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    background: #f5f7fb;
    color: #10284f;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-page {
    display: flex;
    min-height: 100vh;
    background: #fff;
}

.auth-brand-panel {
    position: relative;
    display: flex;
    width: 34%;
    min-height: 100vh;
    align-items: center;
    overflow: hidden;
    padding: 46px clamp(28px, 5vw, 76px);
    color: #fff;
    background: linear-gradient(145deg, #ee2637 0%, #d90f24 46%, #a9081c 100%);
}

.auth-brand-panel::before,
.auth-brand-panel::after {
    position: absolute;
    z-index: 0;
    width: 440px;
    height: 440px;
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.auth-brand-panel::before {
    top: -195px;
    right: -260px;
    box-shadow: 0 0 0 50px rgb(255 255 255 / 4%), 0 0 0 100px rgb(255 255 255 / 3%);
}

.auth-brand-panel::after {
    right: -325px;
    bottom: -250px;
    background: rgb(255 255 255 / 4%);
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    margin-bottom: clamp(54px, 10vh, 100px);
    color: #fff;
    text-decoration: none;
}

.auth-ribbon {
    display: grid;
    width: 52px;
    height: 58px;
    place-items: center;
    color: #fff;
    line-height: 1;
    transform: rotate(-9deg);
}

.auth-ribbon svg {
    width: 43px;
    height: 58px;
}

.auth-brand-copy {
    display: grid;
    gap: 1px;
}

.auth-brand-name {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1;
}

.auth-tagline {
    font-size: 12px;
    font-weight: 500;
}

.auth-brand-message {
    max-width: 390px;
}

.auth-eyebrow {
    display: inline-block;
    margin-bottom: 17px;
    color: rgb(255 255 255 / 82%);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.auth-brand-message h1 {
    margin: 0 0 17px;
    font-size: clamp(32px, 3.5vw, 49px);
    font-weight: 750;
    letter-spacing: -.04em;
    line-height: 1.1;
}

.auth-brand-message p {
    max-width: 360px;
    margin: 0;
    color: rgb(255 255 255 / 88%);
    font-size: 15px;
    line-height: 1.7;
}

.auth-features {
    display: grid;
    max-width: 345px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 38px;
}

.auth-features div {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
}

.auth-features i {
    display: grid;
    width: 39px;
    height: 39px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 15%);
    border-radius: 50%;
    background: rgb(255 255 255 / 15%);
    font-size: 17px;
}

.auth-copyright {
    position: absolute;
    z-index: 1;
    right: 20px;
    bottom: 20px;
    left: 20px;
    color: rgb(255 255 255 / 74%);
    font-size: 11px;
    text-align: center;
}

.auth-form-panel {
    display: flex;
    width: 66%;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 42px clamp(28px, 7vw, 104px);
    background: radial-gradient(ellipse at 100% 0%, #fff2f3 0, transparent 33%), #fff;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 680px;
    padding: clamp(26px, 4vw, 48px);
    border: 1px solid #f1e5e7;
    border-radius: 18px;
    background: rgb(255 255 255 / 94%);
    box-shadow: 0 20px 65px rgb(23 42 78 / 8%);
}

.auth-title {
    margin-bottom: 7px;
    color: #10284f;
    font-size: clamp(24px, 2.5vw, 31px);
    font-weight: 750;
    letter-spacing: -.03em;
    line-height: 1.2;
}

.auth-subtitle {
    margin: 0 0 25px;
    color: #65758d;
    font-size: 14px;
    line-height: 1.6;
}

.auth-field {
    position: relative;
    margin-top: 15px;
}

.auth-field-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 15px;
    color: #8a98ab;
    font-size: 16px;
    pointer-events: none;
    transform: translateY(-50%);
}

.auth-input {
    width: 100%;
    height: 48px;
    padding: 0 45px;
    border: 1px solid #dce3ec;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: #13294b;
    font-size: 14px;
    transition: border-color .18s, box-shadow .18s;
}

.auth-input:focus {
    border-color: #df1d30;
    box-shadow: 0 0 0 3px rgb(223 29 48 / 10%);
}

.auth-input::placeholder {
    color: #98a4b4;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    padding: 5px;
    border: 0;
    background: transparent;
    color: #718097;
    cursor: pointer;
    transform: translateY(-50%);
}

.auth-password-toggle:hover {
    color: #d7192d;
}

.auth-link {
    color: #cc1428;
    font-weight: 600;
    text-decoration: none;
}

.auth-link:hover {
    color: #a90d1e;
    text-decoration: underline;
}

.auth-forgot {
    display: inline-block;
    margin-top: 14px;
    font-size: 13px;
}

.auth-button {
    width: 100%;
    min-height: 47px;
    margin-top: 22px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(100deg, #e51d31, #c90d21);
    box-shadow: 0 7px 16px rgb(202 13 33 / 18%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    transition: transform .18s, box-shadow .18s;
}

.auth-button:hover {
    box-shadow: 0 10px 21px rgb(202 13 33 / 25%);
    transform: translateY(-1px);
}

.auth-register-text {
    margin-top: 19px;
    color: #66758a;
    font-size: 13px;
    text-align: center;
}

.auth-error {
    margin: 5px 0 0 2px;
    color: #c9182b;
    font-size: 12px;
}

.auth-hint {
    margin: 6px 0 0 2px;
    color: #718097;
    font-size: 12px;
}

.auth-alert {
    margin-bottom: 17px;
    font-size: 13px;
}

.auth-input.is-invalid {
    border-color: #dc3545;
}

.auth-check {
    color: #56667e;
    font-size: 13px;
}

@media (max-width: 900px) {
    .auth-brand-panel {
        width: 39%;
        padding: 34px 28px;
    }

    .auth-form-panel {
        width: 61%;
        padding: 28px;
    }

    .auth-form-wrapper {
        padding: 28px;
    }
}

@media (max-width: 680px) {
    .auth-page {
        display: block;
    }

    .auth-brand-panel {
        width: 100%;
        min-height: auto;
        padding: 24px 24px 28px;
    }

    .auth-logo {
        margin-bottom: 22px;
    }

    .auth-ribbon {
        width: 42px;
        height: 45px;
    }

    .auth-ribbon svg {
        width: 34px;
        height: 45px;
    }

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

    .auth-brand-message h1 {
        max-width: 440px;
        margin-bottom: 8px;
        font-size: 27px;
    }

    .auth-brand-message p {
        font-size: 13px;
    }

    .auth-eyebrow,
    .auth-features,
    .auth-copyright {
        display: none;
    }

    .auth-form-panel {
        width: 100%;
        min-height: calc(100vh - 190px);
        align-items: flex-start;
        padding: 22px 15px 32px;
    }

    .auth-form-wrapper {
        max-width: 520px;
        margin: 0 auto;
        padding: 24px 20px;
        border-radius: 13px;
    }

    .auth-title {
        font-size: 25px;
    }
}
