/* =====================================================
   Gated Login — Frontend Gate Styles
   ===================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    color: #1a1a1a;
    background: #111;
}

/* ----- Two-column layout ----- */
.gl-overlay {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background: linear-gradient(150deg, #7b1100 0%, #7e0101 50%, #520100 100%);
}

/* Left column: USPs */
.gl-usp {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 60px 48px;
    color: #fff;
    background-image: url('https://crushresearch.com/wp-content/uploads/2025/10/2150472294.jpg');
    background-size: cover;
}

.gl-usp-inner {
    max-width: 600px;
    text-shadow: 1px 1px 10px #959595;
}

.gl-usp-logo {
    margin-bottom: 36px;
}

.gl-usp-logo .custom-logo-link {
    display: inline-block;
}

.gl-usp-logo .custom-logo {
    max-height: 140px;
    max-width: 600px;
    width: auto;
    height: auto;
    display: block;
}

.gl-usp-site-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.gl-usp-heading {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.gl-usp-sub {
    font-size: 1.2rem;
    line-height: 1.25;
    color: #fff;
    margin-bottom: 40px;
}

.gl-usp-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.gl-usp-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.gl-usp-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.gl-usp-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.gl-usp-desc {
    font-size: 1rem;
    color: #fff;
    line-height: 1.5;
}

/* Right column: login/register panel */
.gl-panel {
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

/* ----- Notice / Error ----- */
.gl-notice {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.gl-notice--error {
    background: #fff2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
}

.gl-notice--success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

/* ----- Tabs ----- */
.gl-tabs {
    display: flex;
    border-bottom: 2px solid #e5e5e5;
    margin-bottom: 28px;
}

.gl-tab {
    flex: 1;
    padding: 10px 12px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color 0.15s, border-color 0.15s;
}

.gl-tab:hover {
    color: #444;
}

.gl-tab--active {
    color: #0d0d0d;
    border-bottom-color: #0d0d0d;
}

/* ----- Form panels ----- */
.gl-form-panel {
    display: none;
}

.gl-form-panel--active {
    display: block;
}

/* ----- WordPress native login form overrides ----- */
#gl-login-form {
    width: 100%;
}

#gl-login-form p {
    margin-bottom: 18px;
}

#gl-login-form label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

#gl-login-form input[type="text"],
#gl-login-form input[type="password"] {
    display: block;
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: #1a1a1a;
    background: #fafafa;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    -webkit-appearance: none;
    appearance: none;
}

#gl-login-form input[type="text"]:focus,
#gl-login-form input[type="password"]:focus {
    outline: none;
    border-color: #0d0d0d;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(13, 13, 13, 0.08);
}

/* Submit button */
#gl-wp-submit {
    display: block;
    width: 100%;
    padding: 13px 20px;
    background: #0d0d0d;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    margin-top: 6px;
}

#gl-wp-submit:hover {
    background: #2a2a2a;
}

#gl-wp-submit:active {
    transform: scale(0.98);
}

/* Remember me row */
#gl-login-form .login-remember {
    margin-bottom: 20px !important;
}

#gl-login-form .login-remember label {
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    font-size: 0.875rem;
    color: #666;
    cursor: pointer;
}

#gl-login-form .login-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #0d0d0d;
}

/* ----- Custom register form ----- */
.gl-field {
    margin-bottom: 18px;
}

.gl-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.gl-required {
    color: #dc2626;
    margin-left: 2px;
}

.gl-field input[type="text"],
.gl-field input[type="email"],
.gl-field input[type="password"] {
    display: block;
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: #1a1a1a;
    background: #fafafa;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    -webkit-appearance: none;
    appearance: none;
}

.gl-field input:focus {
    outline: none;
    border-color: #0d0d0d;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(13, 13, 13, 0.08);
}

.gl-hint {
    display: block;
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 5px;
}

/* Primary button */
.gl-btn--primary {
    display: block;
    width: 100%;
    padding: 13px 20px;
    background: #0d0d0d;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    margin-top: 6px;
}

.gl-btn--primary:hover {
    background: #2a2a2a;
}

.gl-btn--primary:active {
    transform: scale(0.98);
}

/* ----- Form footer (forgot password) ----- */
.gl-form-footer {
    text-align: center;
    margin-top: 18px;
}

.gl-form-footer a {
    font-size: 0.8125rem;
    color: #888;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.gl-form-footer a:hover {
    color: #0d0d0d;
    border-bottom-color: #0d0d0d;
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
    .gl-overlay {
        flex-direction: column;
        align-items: stretch;
    }

    .gl-usp {
        padding: 40px 32px 32px;
        justify-content: center;
    }

    .gl-usp-inner {
        max-width: 100%;
    }

    .gl-usp-heading {
        font-size: 1.5rem;
    }

    .gl-panel {
        max-width: 100%;
        min-height: auto;
        padding: 40px 32px;
    }
}

@media (max-width: 480px) {
    .gl-usp {
        padding: 32px 24px 24px;
    }

    .gl-usp-heading {
        font-size: 1.25rem;
    }

    .gl-usp-sub {
        font-size: 0.9rem;
        margin-bottom: 28px;
    }

    .gl-panel {
        padding: 32px 24px;
    }
}

/* ----- Terms / certification checkboxes ----- */
.gl-terms {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.gl-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.8125rem;
    color: #444;
    line-height: 1.5;
}

.gl-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #0d0d0d;
    flex-shrink: 0;
}

/* ----- Social login divider ----- */
.gl-social-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 16px;
    color: #bbb;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.gl-social-divider::before,
.gl-social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e5e5;
}

/* ----- Google / Nextend Social Login button ----- */
.gl-social-login {
    text-align: center;
}

.gl-social-login .nextend-social-login-provider-google,
.gl-social-login .nsl-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    padding: 11px 20px !important;
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #444 !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    transition: background 0.15s, border-color 0.15s !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.gl-social-login .nextend-social-login-provider-google:hover,
.gl-social-login .nsl-button:hover {
    background: #f5f5f5 !important;
    border-color: #ccc !important;
}
