/* Phone Authentication Modal Styles */

.phone-auth-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.phone-auth-modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.phone-auth-modal-content {
    background-color: #ffffff;
    margin: auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
    position: relative;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.phone-auth-header {
    padding: 30px 30px 20px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.phone-auth-header h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.phone-auth-header p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.phone-auth-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #999;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.phone-auth-close:hover,
.phone-auth-close:focus {
    color: #333;
    background-color: #f5f5f5;
}

.phone-auth-tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
}

.phone-auth-tab {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.phone-auth-tab:hover {
    color: #333;
    background-color: #f9f9f9;
}

.phone-auth-tab.active {
    color: #007cba;
    font-weight: 600;
}

.phone-auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #007cba;
}

.phone-auth-tab-content {
    display: none;
    padding: 30px;
    animation: fadeInContent 0.3s ease;
}

@keyframes fadeInContent {
    from { opacity: 0; }
    to { opacity: 1; }
}

.phone-auth-tab-content.active {
    display: block;
}

.phone-auth-form-group {
    margin-bottom: 20px;
}

.phone-auth-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

.phone-auth-form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.phone-auth-form-group input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.phone-auth-form-group input::placeholder {
    color: #999;
}

.phone-auth-submit {
    width: 100%;
    padding: 14px 20px;
    background-color: #007cba;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.phone-auth-submit:hover {
    background-color: #006399;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.phone-auth-submit:active {
    transform: translateY(0);
}

.phone-auth-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.phone-auth-message {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    display: none;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.phone-auth-message.show {
    display: block;
}

.phone-auth-message.error {
    background-color: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.phone-auth-message.success {
    background-color: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.phone-auth-message.info {
    background-color: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

/* Responsive Design */
@media (max-width: 576px) {
    .phone-auth-modal-content {
        width: 95%;
        margin: 20px auto;
    }
    
    .phone-auth-header {
        padding: 25px 20px 15px;
    }
    
    .phone-auth-header h2 {
        font-size: 20px;
    }
    
    .phone-auth-tab-content {
        padding: 20px;
    }
    
    .phone-auth-tab {
        font-size: 14px;
        padding: 12px 15px;
    }
}

/* Loading State */
.button-loader svg {
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}