/**
 * Google Sign-In Button Styles
 * Responsive design for Web Browser, Android Mobile, iOS Mobile
 */

/* Google Sign-In Button Container */
.google-signin-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    width: 100%;
}

/* Google Sign-In Button */
.google-signin-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: #757575;
    border: 1px solid #dadce0;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    min-width: 200px;
    width: 100%;
    max-width: 300px;
    position: relative;
    overflow: hidden;
}

.google-signin-button:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background-color: #f8f9fa;
    transform: translateY(-1px);
}

.google-signin-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.google-signin-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Google Icon */
.google-signin-icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234285F4' d='M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z'/%3E%3Cpath fill='%2334A853' d='M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z'/%3E%3Cpath fill='%23FBBC05' d='M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z'/%3E%3Cpath fill='%23EA4335' d='M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Button Text */
.google-signin-text {
    flex: 1;
    text-align: center;
}

/* Loading State */
.google-signin-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.google-signin-button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #4285f4;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Divider (OR) */
.google-signin-divider {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 300px;
    margin: 20px 0;
    text-align: center;
}

.google-signin-divider::before,
.google-signin-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dadce0;
}

.google-signin-divider span {
    padding: 0 15px;
    color: #757575;
    font-size: 14px;
    font-weight: 500;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .google-signin-button {
        padding: 14px 20px;
        font-size: 15px;
        min-width: 100%;
        max-width: 100%;
    }
    
    .google-signin-icon {
        width: 20px;
        height: 20px;
        margin-right: 10px;
    }
    
    .google-signin-container {
        margin: 15px 0;
    }
}

/* iOS Specific Adjustments */
@supports (-webkit-touch-callout: none) {
    .google-signin-button {
        -webkit-tap-highlight-color: transparent;
        -webkit-appearance: none;
    }
}

/* Android Specific Adjustments */
@media (hover: none) and (pointer: coarse) {
    .google-signin-button {
        padding: 16px 24px;
        font-size: 16px;
    }
    
    .google-signin-button:active {
        background-color: #f1f3f4;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .google-signin-button {
        background-color: #2d2d2d;
        color: #e8eaed;
        border-color: #5f6368;
    }
    
    .google-signin-button:hover {
        background-color: #3c4043;
    }
    
    .google-signin-divider::before,
    .google-signin-divider::after {
        background: #5f6368;
    }
    
    .google-signin-divider span {
        color: #e8eaed;
    }
}

/* Success/Error Messages */
.google-signin-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    width: 100%;
    max-width: 300px;
}

.google-signin-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.google-signin-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Inline Google Sign-In (for forms) */
.google-signin-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

/* Full Width Button */
.google-signin-button.full-width {
    max-width: 100%;
    width: 100%;
}

