/* Google Authentication Styles */

/* Google Auth Modal */
.google-auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.google-auth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.google-auth-popup {
    position: relative;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.google-auth-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    position: relative;
}

.google-auth-header h2 {
    font-size: 20px;
    font-weight: 500;
    color: #202124;
    margin: 0;
    flex: 1;
}

.google-auth-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 20px;
    color: #5f6368;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.google-auth-close:hover {
    background: #f1f3f4;
}

.google-accounts-list {
    padding: 8px;
}

.google-account-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 16px;
}

.google-account-item:hover {
    background: #f8f9fa;
    transform: translateX(4px);
}

.google-account-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0D9488 0%, #0891B2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.google-account-info {
    flex: 1;
    min-width: 0;
}

.google-account-name {
    font-size: 15px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.google-account-email {
    font-size: 13px;
    color: #5f6368;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.google-auth-footer {
    padding: 16px 24px 24px;
}

/* Google Auth Success Message */
.google-auth-success {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 16px 24px;
    z-index: 10001;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.google-auth-success.show {
    transform: translateX(0);
    opacity: 1;
}

.success-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #0D9488;
}

.success-content i {
    font-size: 24px;
}

.success-content span {
    font-size: 15px;
    font-weight: 500;
    color: #1f2937;
}

/* Google Button Enhancements */
.btn-social.btn-google {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-social.btn-google:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.btn-social.btn-google:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-social.btn-google i.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .google-auth-popup {
        width: 95%;
        max-width: none;
        margin: 20px;
    }
    
    .google-auth-header {
        padding: 20px 20px 12px;
    }
    
    .google-auth-header h2 {
        font-size: 18px;
    }
    
    .google-account-item {
        padding: 12px;
    }
    
    .google-account-avatar {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .google-auth-success {
        right: 10px;
        top: 10px;
        padding: 12px 20px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .google-auth-popup {
        background: #1f2937;
    }
    
    .google-auth-header {
        border-bottom-color: #374151;
    }
    
    .google-auth-header h2 {
        color: #f9fafb;
    }
    
    .google-auth-close {
        color: #d1d5db;
    }
    
    .google-auth-close:hover {
        background: #374151;
    }
    
    .google-account-item:hover {
        background: #374151;
    }
    
    .google-account-name {
        color: #f9fafb;
    }
    
    .google-account-email {
        color: #9ca3af;
    }
    
    .google-auth-success {
        background: #1f2937;
    }
}

/* Loading State */
.google-auth-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

/* Custom Input Styles */
.google-auth-popup input[type="email"],
.google-auth-popup input[type="text"] {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.google-auth-popup input[type="email"]:focus,
.google-auth-popup input[type="text"]:focus {
    outline: none;
    border-color: #0D9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.google-auth-popup button {
    transition: all 0.2s ease;
}

.google-auth-popup button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.google-auth-popup button:active {
    transform: translateY(0);
}

