.auth-modal {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100svh;
    background: var(--780-main-primary);
    overflow: hidden;
}

/* Brand Section */
.auth-brand {
    flex-shrink: 0;
}

.brand-content {
    display: flex;
    gap: var(--780-spacing-8);
    padding: var(--780-spacing-24) var(--780-spacing-24) var(--780-spacing-16);
    justify-content: space-between;
    align-items: center;
}

.brand-text {
    color: var(--780-main-on-primary);
    width: 72%;
    display: flex;
    flex-direction: column;
    gap: var(--780-spacing-8);
}

.brand-title {
    font-size: 1.4rem;
    font-weight: 700;
}

.brand-desc {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
}

.brand-image {
    width: 100px;
    height: 87px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.brand-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Form Section */
.auth-form {
    position: relative;
    background: var(--780-main-surface);
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px var(--780-spacing-16) 32px;
    border-radius: 32px 32px 0 0;
}

.form-inner {
    max-width: 328px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.auth-logo {
    display: flex;
    justify-content: center;
    padding-bottom: var(--780-spacing-24);
}

.auth-logo img {
    height: 55px;
    width: auto;
}

.form-heading {
    display: block;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--780-main-on-surface);
    padding-top: var(--780-spacing-24);
    padding-bottom: var(--780-spacing-8);
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: var(--780-spacing-16);
    margin: var(--780-spacing-24) 0;
}

.form-hint {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--780-main-on-surface);
    line-height: 1.8;
}

.form-footer {
    display: flex;
    justify-content: center;
    margin-bottom: var(--780-spacing-16);
}

.form-footer .btn-primary {
    width: 328px;
    max-width: 100%;
}

/* Terms Row */
.terms-row {
    display: flex;
    align-items: center;
    gap: var(--780-spacing-8);
}

.terms-row svg {
    flex-shrink: 0;
}

.terms-row p {
    font-size: 1.2rem;
    color: var(--780-main-on-surface-var);
}

.terms-row a {
    color: var(--780-main-primary);
}

/* Tablet+ / Desktop (640px+) — two-panel layout */
@media (min-width: 640px) {
    .auth-modal {
        flex-direction: row-reverse;
    }

    .auth-brand {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
        flex: 1;
    }

    .brand-content {
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
        height: 100%;
        gap: 40px;
        padding: 32px;
    }

    .brand-text {
        width: 90%;
        gap: var(--780-spacing-12);
    }

    .brand-title {
        font-size: 1.6rem;
        font-weight: 500;
    }

    .brand-desc {
        font-size: 1.2rem;
    }

    .brand-image {
        width: 200px;
        height: 174px;
    }

    .auth-form {
        width: 50%;
        flex: none;
        border-radius: 32px 0 0 32px;
        padding: 32px;
    }

    .form-inner {
        margin-top: 48px;
    }

    .form-footer {
        margin-bottom: 32px;
    }

    .auth-logo img {
        height: 56px;
    }

    .auth-logo {
        padding-bottom: var(--780-spacing-24);
        padding-top: var(--780-spacing-24);
    }
}

/* XL (1280px+) */
@media (min-width: 1280px) {
    .brand-text {
        width: 70%;
    }

    .brand-title {
        font-size: 2.2rem;
    }

    .brand-desc {
        font-size: 1.4rem;
    }

    .brand-image {
        width: 288px;
        height: 251px;
    }

    .form-inner {
        margin-top: 96px;
    }
}
