/* Google Login Button Styles */
.google-login-container {
    margin: 15px 0;
    text-align: center;
}

/* Google Logout Button Styles */
.google-logout-container {
    margin: 15px 0;
    text-align: center;
}

.google-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 1px solid #dadce0;
    border-radius: 4px;
    color: #3c4043;
    cursor: pointer;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    height: 40px;
    letter-spacing: 0.25px;
    margin: 0;
    max-width: 400px;
    min-width: 200px;
    padding: 0 12px;
    position: relative;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    transition: background-color 0.218s, border-color 0.218s, box-shadow 0.218s;
    user-select: none;
    -webkit-user-select: none;
    vertical-align: middle;
    white-space: nowrap;
    width: auto;
}

.google-login-button:hover {
    background-color: #f8f9fa;
    border-color: #dadce0;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.30), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    text-decoration: none;
    color: #fff;
}

.google-login-button:focus {
    background-color: #f8f9fa;
    border-color: #4285f4;
    outline: none;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.30), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.google-login-button:active {
    background-color: #f1f3f4;
    border-color: #5f6368;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.30), 0 2px 6px 2px rgba(60, 64, 67, 0.15);
}

.google-login-button svg {
    margin-right: 8px;
    flex-shrink: 0;
}

.google-logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 1px solid #ea4335;
    border-radius: 4px;
    color: #ea4335;
    cursor: pointer;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    height: 40px;
    letter-spacing: 0.25px;
    margin: 0;
    max-width: 400px;
    min-width: 150px;
    padding: 0 12px;
    position: relative;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    transition: background-color 0.218s, border-color 0.218s, box-shadow 0.218s;
    user-select: none;
    -webkit-user-select: none;
    vertical-align: middle;
    white-space: nowrap;
    width: auto;
}

.google-logout-button:hover {
    background-color: #ea4335;
    border-color: #ea4335;
    color: #fff;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.30), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    text-decoration: none;
}

.google-logout-button:focus {
    background-color: #ea4335;
    border-color: #ea4335;
    color: #fff;
    outline: none;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.30), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.google-logout-button:active {
    background-color: #d33b2c;
    border-color: #d33b2c;
    color: #fff;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.30), 0 2px 6px 2px rgba(60, 64, 67, 0.15);
}

.google-logout-button svg {
    margin-right: 8px;
    flex-shrink: 0;
}

/* WordPress login form specific styles */
#loginform .google-login-container {
    margin: 10px 0;
    padding: 10px 0;
    border-top: 1px solid #ddd;
}

/* WooCommerce integration styles */
.woocommerce-form-login .google-login-container,
.woocommerce-form-register .google-login-container {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #e1e1e1;
    border-bottom: 1px solid #e1e1e1;
}

.woocommerce .google-login-button {
    width: 100%;
    max-width: none;
}

/* Checkout page specific styles */
.google-login-checkout-container {
    background: #f9f9f9;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.google-login-checkout-header h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.google-login-checkout-header p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

.google-login-button.google-login-checkout {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 0px auto;
    display: flex;
}

.google-login-divider {
    position: relative;
    margin-top: 15px;
    text-align: center;
}

.google-login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.google-login-divider span {
    background: #f9f9f9;
    padding: 0 15px;
    color: #888;
    font-size: 12px;
    position: relative;
    z-index: 1;
}

/* Responsive styles */
@media (max-width: 480px) {
    .google-login-button {
        min-width: 180px;
        font-size: 13px;
        height: 36px;
        padding: 0 10px;
    }
    
    .google-login-button svg {
        width: 16px;
        height: 16px;
        margin-right: 6px;
    }
    
    .google-login-checkout-container {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .google-login-checkout-header h3 {
        font-size: 16px;
    }
    
    .google-login-checkout-header p {
        font-size: 13px;
    }
    
    .google-login-button.google-login-checkout {
        max-width: none;
        width: 100%;
    }
    
    .google-logout-button {
        min-width: 130px;
        font-size: 13px;
        height: 36px;
        padding: 0 10px;
    }
    
    .google-logout-button svg {
        width: 16px;
        height: 16px;
        margin-right: 6px;
    }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .google-login-button {
        background-color: #2d2d2d;
        border-color: #5f6368;
        color: #e8eaed;
    }
    
    .google-login-button:hover {
        background-color: #fff;
        border-color: #fff;
    }
    
    .google-login-button:focus {
        background-color: #353535;
        border-color: #8ab4f8;
    }
    
    .google-login-button:active {
        background-color: #404040;
        border-color: #5f6368;
    }
    
    .google-login-checkout-container {
        background: #fff;
        border-color: #fff;
    }
    
    .google-login-checkout-header h3 {
        color: #e8eaed;
    }
    
    .google-login-checkout-header p {
        color: #9aa0a6;
    }
    
    .google-login-divider::before {
        background: #5f6368;
    }
    
    .google-login-divider span {
        background: #1f1f1f;
        color: #9aa0a6;
    }
    
    .google-logout-button {
        background-color: #2d2d2d;
        border-color: #ea4335;
        color: #ea4335;
    }
    
    .google-logout-button:hover {
        background-color: #ea4335;
        border-color: #ea4335;
        color: #fff;
    }
    
    .google-logout-button:focus {
        background-color: #ea4335;
        border-color: #ea4335;
        color: #fff;
    }
    
    .google-logout-button:active {
        background-color: #d33b2c;
        border-color: #d33b2c;
        color: #fff;
    }
}

/* Loading state */
.google-login-button.loading {
    opacity: 0.6;
    pointer-events: none;
}

.google-login-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 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Error message styling */
.google-login-error {
    color: #d93025;
    font-size: 13px;
    margin-top: 5px;
    text-align: center;
}

.google-login-success {
    color: #137333;
    font-size: 13px;
    margin-top: 5px;
    text-align: center;
} 