.auth-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 57, 84, 0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-popup {
    background: #fff;
    width: 100%;
    max-width: 420px;
    padding: 2.5rem 2rem 2rem;
    position: relative;
}

.auth-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    transition: background 150ms ease, color 150ms ease;
}

.auth-popup-close:hover {
    background: rgba(11, 57, 84, 0.06);
    color: #0b3954;
}

.auth-popup-close svg {
    width: 20px;
    height: 20px;
}

.auth-popup-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-popup-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0b3954;
    margin-bottom: 0.5rem;
}

.auth-popup-header p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

.auth-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-popup-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem 1rem;
    background: #fff;
    border: 1.5px solid #dee2e6;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
}

.auth-popup-google-btn:hover {
    background: #f8f9fa;
}

.auth-popup-google-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.auth-popup-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.5rem 0;
    color: #adb5bd;
    font-size: 0.8rem;
}

.auth-popup-divider::before,
.auth-popup-divider::after {
    content: '';
    flex: 1;
    border-top: 1px solid #dee2e6;
}

.auth-popup-phone-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.auth-popup-field {
    position: relative;
}

.auth-popup-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid #dee2e6;
    border-radius: 10px;
    font-size: 0.925rem;
    font-family: 'Poppins', sans-serif;
    background: #f8f9fa;
    color: #212529;
    box-sizing: border-box;
}

.auth-popup-input:focus {
    outline: none;
    border-color: #86b7fe;
    background: #fff;
}

.auth-popup-input::placeholder {
    color: #adb5bd;
}

.auth-popup-signin-btn {
    width: 100%;
    padding: 0.8rem 1rem;
    background: #0b3954;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.925rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
}

.auth-popup-signin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-popup-phone-note {
    text-align: center;
    font-size: 0.75rem;
    color: #adb5bd;
    margin: 0;
}

.auth-popup-error {
    text-align: center;
    font-size: 0.8rem;
    color: #dc3545;
    margin: 0;
    display: none;
}

.auth-popup-error.visible {
    display: block;
}

.auth-popup-switch {
    background: none;
    border: none;
    color: #adb5bd;
    font-size: 0.8rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    padding: 0;
}

.auth-popup-switch:hover {
    color: #868e96;
}

.auth-popup-terms {
    text-align: center;
    font-size: 0.8rem;
    color: #adb5bd;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.auth-popup-terms a {
    color: #087e8b;
    text-decoration: none;
}

.auth-popup-terms a:hover {
    text-decoration: underline;
}

@media (max-width: 576px) {
    .auth-popup-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .auth-popup {
        border-radius: 20px 20px 0 0;
        max-width: none;
        padding: 2rem 1.5rem 2rem;
        max-height: 85vh;
        overflow-y: auto;
    }

    .auth-popup-header h2 {
        font-size: 1.3rem;
    }
}