/**
 * Google Login Frontend Buttons CSS
 */

.gla-login-container {
    margin: 15px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

/* Form Divider */
.gla-divider {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    line-height: 0.1em;
    margin: 20px 0 20px;
    font-size: 13px;
    color: #888;
}

.gla-divider span {
    background: #fff;
    padding: 0 15px;
}

/* Adjust divider when in some contexts like WooCommerce where background is off-white */
.woocommerce-page .gla-divider span {
    background: #fff !important;
}

/* The Button base style */
.gla-google-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    height: 46px;
    box-sizing: border-box !important;
    text-decoration: none !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.25px;
    transition: background-color 0.2s, box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    user-select: none;
}

/* Icon Box wrapper */
.gla-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

.gla-icon-box svg {
    width: 20px;
    height: 20px;
    display: block;
}

.gla-button-text {
    white-space: nowrap;
}

/* Theme - Light (Standard Google style) */
.gla-theme-light {
    background-color: #ffffff;
    color: #1f1f1f !important;
    border: 1px solid #dadce0;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
}

.gla-theme-light:hover {
    background-color: #f7f9fa;
    border-color: #d2d4d7;
    box-shadow: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
}

.gla-theme-light:active {
    background-color: #f1f3f4;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3);
}

/* Theme - Dark (Google Dark Theme) */
.gla-theme-dark {
    background-color: #131314;
    color: #e3e3e3 !important;
    border: 1px solid #8e918f;
}

.gla-theme-dark:hover {
    background-color: #202124;
    border-color: #a8aaa7;
}

.gla-theme-dark:active {
    background-color: #2b2d31;
}

/* Theme - Neutral (Minimalist Outline) */
.gla-theme-neutral {
    background-color: transparent;
    color: #3c4043 !important;
    border: 2px solid #e0e0e0;
}

.gla-theme-neutral:hover {
    background-color: #f8f9fa;
    border-color: #3c4043;
}

.gla-theme-neutral:active {
    background-color: #f1f3f4;
}

/* Corner Shapes */
.gla-shape-square {
    border-radius: 4px;
}

.gla-shape-rounded {
    border-radius: 8px;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    display: inline-flex !important;
}

.gla-shape-pill {
    border-radius: 9999px;
}

/* WordPress Login form adjustment */
#loginform .gla-login-container,
#registerform .gla-login-container {
    margin-top: 10px;
    margin-bottom: 20px;
}

/* Shortcode wrapper overrides if necessary */
.gla-login-container.shortcode-button {
    max-width: 100% !important;
}
