.auth-main {
    width: min(1180px, calc(100% - 56px));
    margin: 0 auto;
    padding: 44px 0 76px;
}

.auth-shell {
    display: grid;
    grid-template-columns: 1.05fr 460px;
    gap: 28px;
    align-items: stretch;
}

.auth-brand-panel,
.auth-card {
    border-radius: 30px;
    background: #fff;
    border: 1px solid rgba(35, 22, 63, 0.10);
    box-shadow: 0 24px 70px rgba(35, 22, 63, 0.08);
}

.auth-brand-panel {
    min-height: 620px;
    padding: 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 200, 87, 0.24), transparent 22%),
        radial-gradient(circle at 16% 82%, rgba(16, 179, 158, 0.16), transparent 24%),
        linear-gradient(135deg, rgba(75, 43, 191, 0.10), rgba(255, 111, 97, 0.07));
}

.auth-brand-panel::before {
    content: '';
    position: absolute;
    right: -80px;
    bottom: -90px;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    background: rgba(75, 43, 191, 0.09);
}

.auth-brand-panel::after {
    content: '';
    position: absolute;
    right: 82px;
    bottom: 78px;
    width: 132px;
    height: 132px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(10deg);
    box-shadow:
        -90px -70px 0 rgba(255, 255, 255, 0.22),
        -150px 16px 0 rgba(255, 255, 255, 0.16);
}

.auth-logo-link {
    width: fit-content;
    display: inline-flex;
    position: relative;
    z-index: 1;
    margin-bottom: 34px;
}

.auth-logo-link img {
    width: 150px;
    height: auto;
    display: block;
}

.auth-brand-panel > span,
.auth-card-header span,
.auth-modal-header span {
    display: inline-flex;
    color: var(--krealy-coral);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.auth-brand-panel > span {
    position: relative;
    z-index: 1;
    width: fit-content;
    margin-bottom: 12px;
    font-size: 13px;
    letter-spacing: 0.8px;
}

.auth-brand-panel h1 {
    position: relative;
    z-index: 1;
    max-width: 540px;
    margin: 0;
    color: var(--krealy-dark);
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 46px;
    line-height: 1.04;
    letter-spacing: -1.8px;
}

.auth-brand-panel p {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 18px 0 0;
    color: var(--krealy-muted);
    font-size: 17px;
    line-height: 1.58;
    font-weight: 650;
}

.auth-benefits {
    position: relative;
    z-index: 1;
    margin-top: 34px;
    display: grid;
    gap: 12px;
}

.auth-benefits div {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(35, 22, 63, 0.08);
    backdrop-filter: blur(10px);
}

.auth-benefits strong {
    display: block;
    color: var(--krealy-dark);
    font-size: 15px;
    font-weight: 900;
}

.auth-benefits small {
    display: block;
    margin-top: 4px;
    color: var(--krealy-muted);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
}

.auth-card {
    padding: 34px;
}

.auth-card-header span {
    margin-bottom: 8px;
}

.auth-card-header h2,
.auth-modal-card h2 {
    margin: 0;
    color: var(--krealy-dark);
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.auth-card-header p,
.auth-modal-card p {
    margin: 9px 0 0;
    color: var(--krealy-muted);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 650;
}

.auth-social {
    margin-top: 24px;
    display: grid;
    gap: 10px;
}

.auth-social-button {
    width: 100%;
    min-height: 52px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 38px 1fr auto;
    gap: 10px;
    align-items: center;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(35, 22, 63, 0.11);
    color: var(--krealy-dark);
    font-family: inherit;
    cursor: pointer;
    text-align: left;
}

.auth-social-button.is-disabled {
    cursor: not-allowed;
    opacity: 0.82;
}

.auth-social-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #fbfaf8;
    border: 1px solid rgba(35, 22, 63, 0.08);
    color: var(--krealy-purple);
    font-size: 17px;
    font-weight: 900;
}

.auth-social-button strong {
    color: var(--krealy-dark);
    font-size: 14px;
    font-weight: 900;
}

.auth-social-button small {
    min-height: 24px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 200, 87, 0.20);
    color: #8a5d00;
    font-size: 11px;
    font-weight: 900;
}

.auth-divider {
    margin: 24px 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--krealy-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    height: 1px;
    flex: 1;
    background: rgba(35, 22, 63, 0.10);
}

.auth-form {
    margin-top: 0;
}

.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--krealy-dark);
    font-size: 13px;
    font-weight: 900;
}

.auth-field input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border-radius: 15px;
    border: 1px solid rgba(35, 22, 63, 0.13);
    background: #fff;
    color: var(--krealy-dark);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    outline: none;
}

.auth-field input:focus {
    border-color: rgba(75, 43, 191, 0.48);
    box-shadow: 0 0 0 4px rgba(75, 43, 191, 0.08);
}

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

.auth-options label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--krealy-text);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.auth-options input,
.auth-terms input {
    accent-color: var(--krealy-purple);
}

.auth-options a {
    color: var(--krealy-purple);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.auth-submit {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--krealy-purple), #6537d8);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 15px 34px rgba(75, 43, 191, 0.25);
}

.auth-create-account {
    margin-top: 18px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    border-radius: 16px;
    background: #fbfaf8;
    border: 1px solid rgba(35, 22, 63, 0.08);
}

.auth-create-account span {
    color: var(--krealy-muted);
    font-size: 13px;
    font-weight: 800;
}

.auth-create-account a {
    color: var(--krealy-purple);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.auth-secondary-actions {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.auth-secondary-actions a {
    min-height: 44px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(75, 43, 191, 0.16);
    color: var(--krealy-purple);
    font-size: 13px;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.auth-modal:target {
    display: flex;
}

.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    display: block;
    background: rgba(15, 10, 32, 0.34);
    backdrop-filter: blur(14px);
}

.auth-modal-card {
    width: min(440px, 100%);
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    position: relative;
    z-index: 1;
    padding: 30px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.48);
    box-shadow: 0 30px 90px rgba(15, 10, 32, 0.28);
}

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

.auth-modal-header {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.auth-modal-header a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fbfaf8;
    border: 1px solid rgba(35, 22, 63, 0.10);
    color: var(--krealy-dark);
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
    text-decoration: none;
}

.auth-modal-form {
    margin-top: 22px;
}

.auth-terms {
    margin: 4px 0 18px;
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: start;
    color: var(--krealy-muted);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
    cursor: pointer;
}

.auth-modal-footer {
    margin-top: 18px;
    text-align: center;
}

.auth-modal-footer a {
    color: var(--krealy-purple);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

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

    .auth-brand-panel {
        min-height: auto;
    }
}

@media (max-width: 680px) {
    .auth-main {
        width: min(100% - 24px, 1180px);
        padding: 24px 0 96px;
    }

    .auth-brand-panel,
    .auth-card {
        border-radius: 24px;
    }

    .auth-brand-panel {
        padding: 28px;
    }

    .auth-brand-panel h1 {
        font-size: 34px;
    }

    .auth-card {
        padding: 24px;
    }

    .auth-social-button {
        grid-template-columns: 38px 1fr;
    }

    .auth-social-button small {
        grid-column: 2;
        width: fit-content;
    }

    .auth-secondary-actions {
        grid-template-columns: 1fr;
    }

    .auth-modal {
        padding: 14px;
        align-items: flex-start;
    }

    .auth-modal-card {
        margin-top: 18px;
        padding: 24px;
        border-radius: 24px;
    }
}
