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

.auth-popup.is-open {
    display: flex;
}

.auth-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.42);
    backdrop-filter: blur(5px);
}

.auth-popup__card {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    padding: 24px;
    border-radius: 14px;
    background: white;
    border: 1px solid rgba(1, 141, 113, 0.16);
    box-shadow: 0 24px 70px rgba(17, 17, 17, 0.20);
}

.auth-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: var(--sr-radius-pill);
    background: rgba(1, 141, 113, 0.08);
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: var(--fs-subtitle);
    line-height: 1;
    cursor: pointer;
    transition:
        background 0.18s ease,
        transform 0.18s ease;
}

.auth-popup__close:hover {
    background: rgba(184, 50, 95, 0.10);
    transform: rotate(4deg);
}

.auth-popup__kicker {
    margin: 0 0 8px;
    color: var(--color-raspberry);
    font-family: var(--font-accent);
    font-size: var(--fs-small);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-popup__card h3 {
    margin: 0 0 10px;
    color: var(--color-text);
    font-family: var(--font-accent);
    font-size: var(--fs-subtitle);
    line-height: 1.2;
    font-weight: 900;
}

.auth-popup__text {
    margin: 0;
    color: rgba(17, 17, 17, 0.68);
    font-family: var(--font-main);
    font-size: var(--fs-body);
    line-height: 1.55;
    font-weight: 500;
}

.auth-popup__actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    
}

.auth-popup__btn {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid transparent;
    font-family: var(--font-main);
    font-size: var(--fs-small);
    font-weight: 850;
    cursor: pointer;
    transition:
        background 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.auth-popup__btn:hover {
    transform: translateY(-1px);
}

.auth-popup__btn-primary {
    flex: 1;
    background: var(--color-raspberry);
    border-color: var(--color-raspberry);
    color: var(--sr-surface);
    box-shadow: 0 10px 20px rgba(184, 50, 95, 0.18);
}

.auth-popup__btn-primary:hover {
    background: #9f294f;
    border-color: #9f294f;
    color: var(--sr-surface);
}

.auth-popup__btn-secondary {
    flex: 1;
    background: var(--sr-surface);
    border-color: rgba(17, 17, 17, 0.14);
    color: var(--color-text);
}

.auth-popup__btn-secondary:hover {
    border-color: rgba(1, 141, 113, 0.24);
    background: rgba(61, 199, 171, 0.08);
}

body.auth-popup-open {
    overflow: hidden;
}