/* Phone Authentication Modal */
.phone-auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.phone-auth-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.phone-auth-content h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.phone-auth-content p {
    color: #666;
    margin-bottom: 30px;
}

.auth-step {
    margin: 20px 0;
}

.phone-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 5px;
}

.country-code {
    padding: 12px 15px;
    background: var(--primary-color);
    color: white;
    border-radius: 6px;
    font-weight: 600;
}

#phone-number, #otp-code {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    font-size: 18px;
    letter-spacing: 2px;
    text-align: center;
}

#phone-number:focus, #otp-code:focus {
    outline: none;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-btn:hover:not(:disabled) {
    background: var(--primary-dark);
}

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

.text-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    margin-top: 15px;
    text-decoration: underline;
}

.otp-sent-message {
    margin-bottom: 20px;
    color: #333;
}

.otp-sent-message span {
    font-weight: 600;
    color: var(--primary-color);
}

.auth-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.auth-message.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.auth-message.error {
    background: #ffebee;
    color: #c62828;
}

@media (max-width: 480px) {
    .phone-auth-content {
        padding: 30px 20px;
    }
}
