.auth-modal {
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

#modal-auth .modal-dialog {
    max-width: 420px;
}

#modal-auth .modal-body {
    padding: 40px 32px 32px;
}

.auth-close {
    position: absolute;
    right: 18px;
    top: 18px;
    z-index: 10;
}

.auth-top {
    text-align: center;
    margin-bottom: 24px;
}

.auth-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 18px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

/* Provider buttons */
.auth-providers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-provider-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    text-decoration: none;
    transition: opacity .18s ease, transform .18s ease;
}

.auth-provider-btn:hover {
    color: #fff;
    opacity: .88;
    transform: translateY(-1px);
}

.auth-vk     { background: #0077FF; }
.auth-yandex { background: #FC3F1D; }
.auth-sber   { background: #21A038; }

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #aaa;
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8e8e8;
}

/* Phone input with imprinted +7 */
.phone-wrap {
    display: flex;
    align-items: center;
    height: 52px;
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 0 16px;
    transition: border-color .18s, box-shadow .18s;
}

.phone-wrap:focus-within {
    border-color: #000;
    box-shadow: 0 0 0 4px rgba(0,0,0,.05);
}

.phone-prefix {
    font-weight: 600;
    color: #111;
    margin-right: 4px;
    flex-shrink: 0;
    user-select: none;
}

.phone-wrap input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    font-size: 16px;
    min-width: 0;
    font-family: inherit;
}

.auth-code {
    height: 52px;
    border-radius: 14px;
    border: 1px solid #ddd;
    box-shadow: none;
    text-align: center;
    font-size: 28px;
    letter-spacing: 10px;
    font-weight: 700;
}

.auth-code:focus {
    border-color: #000;
    box-shadow: 0 0 0 4px rgba(0,0,0,.05);
    outline: none;
}

.auth-btn {
    width: 100%;
    height: 52px;
    margin-top: 12px;
    background: #111;
    color: #fff;
    border-radius: 14px;
    border: 0;
    font-weight: 600;
}

.auth-btn:hover {
    background: #000;
    color: #fff;
}

.auth-link {
    width: 100%;
    margin-top: 8px;
    color: #666;
    font-size: 14px;
    background: transparent;
}

.auth-link:hover {
    color: #000;
}
