/* ==========================================================================
   GWL My Account — Sign In Popup (Arabic RTL)
   The .block-authentication mini login modal (Magento_Customer_Block_Account_AuthenticationPopup). Kept SITE-WIDE — this block is registered in Magento_Customer default.xml and can render on any page (checkout, wishlist add-prompt, etc), not just account pages. Do not move this into an account-only bundle.
   Loaded via: Magento_Theme/layout/default_head_blocks.xml (site-wide, same as before).
   ========================================================================== */

/* ==========================================================================
   GWL Sign In popup — Magento_Customer's "block-authentication" popup,
   same colors/typography as the full Sign In page above. This popup can be
   triggered from ANY page (e.g. the guest "Sign In" button in the mobile
   hamburger's Account tab — see .nav-sections #store\.links earlier in
   this file), so unlike the full page it can't be scoped to a body class —
   scoped to .block-authentication itself instead.

   Its markup is the stock Magento_Customer::account/authentication-popup
   template, not the Magedelight override the full login page uses: no
   Email/Mobile toggle or password-visibility eye icon exists here, the
   Sign In button carries class "secondary" (not "primary"), and the
   Create Account link carries class "action-register" (not "action
   create") — so this uses its own selectors rather than broadening the
   :is(...) list above, to avoid also matching toggle/eye-icon rules with
   nothing to bind to in this simpler form. The "Proceed as a new
   customer" heading/benefits list staying hidden and "Create an Account"
   sitting next to "Forgot Your Password?" is already stock Magento
   behavior for this modal context — untouched here; only colors/
   typography change. */
.block-authentication .block-customer-login .form-login .field {
    margin: 0 0 20px;
}
.block-authentication .block-customer-login .form-login .field > .label {
    display: block;
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 400;
    color: var(--gwl-account-title);
}
.block-authentication .block-customer-login .form-login .field.required > .label:after {
    color: var(--gwl-account-danger);
}
.block-authentication .block-customer-login .form-login .field > .control {
    width: 100%;
}
.block-authentication .block-customer-login .form-login input.input-text {
    height: 44px;
    max-width: 485px;
    width: 100%;
    background: #fff;
    border: 1px solid var(--gwl-account-border);
    border-radius: 6px;
    padding: 0 16px;
    font-size: 14px;
    color: var(--gwl-account-text);
    box-sizing: border-box;
}
.block-authentication .block-customer-login .form-login input.input-text:focus {
    border-color: var(--gwl-account-blue);
    box-shadow: none;
    outline: none;
}
.block-authentication .block-customer-login .form-login .actions-toolbar button.action-login {
    width: 100%;
    height: 40px;
    background: var(--gwl-account-blue) !important;
    border: 0 !important;
    border-radius: 6px !important;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    box-shadow: none !important;
    cursor: pointer;
}
.block-authentication .block-customer-login .form-login .actions-toolbar button.action-login:hover {
    background: #221796 !important;
}
.block-authentication .block-customer-login .form-login .actions-toolbar .secondary a.action,
.block-authentication .block-new-customer .actions-toolbar .primary a.action-register {
    font-size: 14px;
    font-weight: 600;
    color: var(--gwl-account-blue) !important;
    text-decoration: none;
}
.block-authentication .block-customer-login .form-login .actions-toolbar .secondary a.action:hover,
.block-authentication .block-new-customer .actions-toolbar .primary a.action-register:hover {
    text-decoration: underline;
}

/* Mobile (<=767px): tighter side padding — title/subtitle/button tokens
   live in the earlier Sign In @media block (28/36 title, 48px button).
   Keep Remember + Forgot on one row (Figma mobile Email). */
@media (max-width: 767px) {
    :is(.customer-account-login, .multishipping-checkout-login) .page-title-wrapper,
    :is(.customer-account-login, .multishipping-checkout-login) .columns .column.main {
        max-width: none !important;
        padding-inline: 16px;
    }
    :is(.customer-account-login, .multishipping-checkout-login) .gwl-login-type-toggle {
        width: 100%;
    }
    :is(.customer-account-login, .multishipping-checkout-login) .gwl-login-type-btn {
        flex: 1 1 0;
        min-width: 0;
        padding: 0 12px;
    }
}

