/* Google Login Plugin - Styles */

/* ── Wrapper ── */
.gl-button-wrap {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}

/* ── Google Button ── */
.gl-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 4px;
    padding: 0 16px;
    height: 48px;
    font-family: 'Google Sans', Roboto, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.25px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.15);
    transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    min-width: 220px;
    justify-content: center;
    user-select: none;
}

.gl-btn:hover {
    background: #f8f9fa;
    border-color: #c6c6c6;
    box-shadow: 0 2px 6px rgba(60, 64, 67, 0.25);
    color: #3c4043;
    text-decoration: none;
}

.gl-btn:active {
    background: #f1f3f4;
    box-shadow: none;
}

.gl-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.4);
}

/* ── Google Icon ── */
.gl-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ── OR Divider ── */
.gl-or-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 16px 0;
    color: #80868b;
    font-size: 13px;
}

.gl-or-divider::before,
.gl-or-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #dadce0;
}

.gl-or-divider span {
    padding: 0 12px;
}

/* ── Logged-in message ── */
.gl-logged-in {
    font-size: 14px;
    color: #3c4043;
    margin: 8px 0;
}

/* ── WordPress login page override ── */
body.login .gl-button-wrap {
    margin: 20px 0 0;
}

body.login .gl-btn {
    width: 100%;
    box-sizing: border-box;
}

body.login .gl-or-divider {
    margin: 20px 0 0;
}

/* ── Admin notice ── */
.gl-admin-notice ol {
    margin-left: 20px;
}

.gl-admin-notice code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
    word-break: break-all;
}

/* ── Dark background support ── */
@media (prefers-color-scheme: dark) {
    .gl-btn {
        background: #303134;
        color: #e8eaed;
        border-color: #5f6368;
    }
    .gl-btn:hover {
        background: #3c4043;
    }
}
