/* Auth Modal Styles */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.auth-modal-content {
    background: #ffffff;
    border: 3px solid #2c2c2c;
    border-radius: 20px;
    padding: 30px;
    width: 400px;
    max-width: 100%;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    background: #f8f8f8;
    border-radius: 10px;
    padding: 4px;
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    color: #666;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.auth-tab.active {
    background: #ffffff;
    color: #2c2c2c;
    border: 2px solid #2c2c2c;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input {
    background: #f8f8f8;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    padding: 15px;
    color: #2c2c2c;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: #999;
}

.form-group input:focus {
    outline: none;
    border-color: #2c2c2c;
    background: #ffffff;
}

.auth-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #666;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.auth-close:hover {
    color: #2c2c2c;
}

/* User Menu Styles */
.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    min-width: 150px;
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

.user-menu-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.3s ease;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.user-menu-item:hover {
    background: #f5f5f5;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from { 
        opacity: 0;
        transform: translateY(-10px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Google OAuth Button */
.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.auth-divider span {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 0 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.btn-google {
    width: 100%;
    background: #4285f4;
    border: none;
    border-radius: 10px;
    padding: 15px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-google:hover {
    background: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(66, 133, 244, 0.3);
}

.btn-google i {
    font-size: 18px;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-modal-content {
        width: 95vw;
        padding: 20px;
    }
    
    .auth-tabs {
        margin-bottom: 15px;
    }
    
    .auth-tab {
        padding: 10px;
        font-size: 14px;
    }
    
    .form-group input {
        padding: 12px;
        font-size: 14px;
    }
}

/* Telegram WebApp - компактное пользовательское меню */
.telegram-webapp .user-menu {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    padding: 5px 0;
    min-width: 120px;
}

.telegram-webapp .user-menu-item {
    padding: 8px 12px;
    font-size: 13px;
}
