.login-popup {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.5);
}
.login-popup-content {
    background-color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 24px 36px;
    border: 1px solid #e2ece7;
    width: 420px;
    max-width: 92vw;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.08);
    font-family: brandon-grotesque, sans-serif;
    box-sizing: border-box;
}
.login-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    color: #999;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease;
    z-index: 1;
}
.login-popup-close:hover,
.login-popup-close:focus {
    background-color: rgba(0, 0, 0, 0.06);
    color: #333;
    text-decoration: none;
}

.wlp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

/* Custom SVG account icon */
.wlp-account-icon-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.wlp-account-icon-svg svg {
    width: 18px;
    height: 18px;
    display: block;
    vertical-align: middle;
}

/* Login label - shows on larger screens, hides on mobile */
.login-account-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #222;
    transition: color 0.2s ease;
}

.login-account-link:hover {
    color: #2c5e54;
    text-decoration: none;
}

.login-label {
    font-family: brandon-grotesque, sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Hide label on mobile to save space */
@media only screen and (max-width: 600px) {
    .login-label {
        display: none;
    }
}

/* Typography */
.login-popup-content h2,
.login-popup-content label {
    font-family: brandon-grotesque, sans-serif;
}

.login-popup-content h2 {
    margin: 0 0 14px 0;
    text-align: center;
    font-weight: 700;
    font-size: 22px;
    color: #2c5e54;
    letter-spacing: 0.01em;
}

.login-popup-content label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #8b9a8f;
    margin-bottom: 4px;
}

/* Form fields */
.login-popup-content input[type="text"],
.login-popup-content input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 10px;
    border: 1px solid #d3d6da;
    border-radius: 6px;
    font-family: brandon-grotesque, sans-serif;
    font-size: 14px;
    color: #1f1f1f;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

/* Password show/hide toggle */
.wlp-password-input {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    margin-bottom: 4px;
}

.wlp-password-input input[type="password"],
.wlp-password-input input[type="text"] {
    padding-right: 2.5rem;
    margin-bottom: 0;
}

.login-popup-content .wlp-show-password {
    background: transparent;
    border: 0;
    cursor: pointer;
    margin: 0;
    padding: 0;
    position: absolute;
    right: 0.7em;
    top: 50%;
    transform: translateY(-50%);
    -webkit-appearance: none;
    line-height: 1;
    width: auto;
    box-shadow: none;
    border-radius: 0;
    color: inherit;
    letter-spacing: normal;
    text-transform: none;
    font-size: inherit;
}

.login-popup-content .wlp-show-password:hover {
    box-shadow: none;
    transform: translateY(-50%);
}

.login-popup-content .wlp-show-password::before {
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M17.3 3.3C16.9 2.9 16.2 2.9 15.7 3.3L13.3 5.7C12.2437 5.3079 11.1267 5.1048 10 5.1C6.2 5.2 2.8 7.2 1 10.5C1.2 10.9 1.5 11.3 1.8 11.7C2.6 12.8 3.6 13.7 4.7 14.4L3 16.1C2.6 16.5 2.5 17.2 3 17.7C3.4 18.1 4.1 18.2 4.6 17.7L17.3 4.9C17.7 4.4 17.7 3.7 17.3 3.3ZM6.7 12.3L5.4 13.6C4.2 12.9 3.1 11.9 2.3 10.7C3.5 9 5.1 7.8 7 7.2C5.7 8.6 5.6 10.8 6.7 12.3ZM10.1 9C9.6 8.5 9.7 7.7 10.2 7.2C10.7 6.8 11.4 6.8 11.9 7.2L10.1 9ZM18.3 9.5C17.8 8.8 17.2 8.1 16.5 7.6L15.5 8.6C16.3 9.2 17 9.9 17.6 10.8C15.9 13.4 13 15 9.9 15H9.1L8.1 16C8.8 15.9 9.4 16 10 16C13.3 16 16.4 14.4 18.3 11.7C18.6 11.3 18.8 10.9 19.1 10.5C18.8 10.2 18.6 9.8 18.3 9.5ZM14 10L10 14C12.2 14 14 12.2 14 10Z" fill="%23111111"/></svg>');
    content: '';
    display: block;
    height: 22px;
    width: 22px;
}

.login-popup-content .wlp-show-password.display-password::before {
    background-image: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18.3 9.49999C15 4.89999 8.50002 3.79999 3.90002 7.19999C2.70002 8.09999 1.70002 9.29999 0.900024 10.6C1.10002 11 1.40002 11.4 1.70002 11.8C5.00002 16.4 11.3 17.4 15.9 14.2C16.8 13.5 17.6 12.8 18.3 11.8C18.6 11.4 18.8 11 19.1 10.6C18.8 10.2 18.6 9.79999 18.3 9.49999ZM10.1 7.19999C10.6 6.69999 11.4 6.69999 11.9 7.19999C12.4 7.69999 12.4 8.49999 11.9 8.99999C11.4 9.49999 10.6 9.49999 10.1 8.99999C9.60003 8.49999 9.60003 7.69999 10.1 7.19999ZM10 14.9C6.90002 14.9 4.00002 13.3 2.30002 10.7C3.50002 8.99999 5.10002 7.79999 7.00002 7.19999C6.30002 7.99999 6.00002 8.89999 6.00002 9.89999C6.00002 12.1 7.70002 14 10 14C12.2 14 14.1 12.3 14.1 9.99999V9.89999C14.1 8.89999 13.7 7.89999 13 7.19999C14.9 7.79999 16.5 8.99999 17.7 10.7C16 13.3 13.1 14.9 10 14.9Z" fill="%23111111"/></svg>');
}

.login-popup-content input[type="text"]:focus,
.login-popup-content input[type="password"]:focus {
    border-color: #a5ccbc;
    box-shadow: 0 0 0 3px rgba(165, 204, 188, 0.2);
    outline: none;
}

.wlp-forgot-password {
    margin: 2px 0 0;
    text-align: right;
}

.wlp-forgot-password a {
    font-size: 13px;
    color: #2c5e54;
    text-decoration: underline;
}

.wlp-forgot-password a:hover {
    color: #1f7a73;
}

.wlp-rememberme {
    display: block;
    font-family: brandon-grotesque, sans-serif;
    font-size: 13px;
    color: #555;
    margin: 6px 0 2px;
    cursor: pointer;
}

.wlp-rememberme input[type="checkbox"] {
    margin-right: 4px;
    vertical-align: middle;
}

.login-popup-content button {
    width: 100%;
    padding: 14px 24px;
    margin-top: 6px;
    font-family: brandon-grotesque, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: linear-gradient(135deg, #2c5e54 0%, #3a7a6d 100%);
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.login-popup-content button:hover {
    box-shadow: 0 4px 12px rgba(44, 94, 84, 0.25);
    transform: translateY(-1px);
}

.login-popup-content button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.wlp-register-help {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.4;
    color: #6b7280;
}

.wlp-social-login {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.wlp-social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-family: brandon-grotesque, sans-serif;
    font-size: 14px;
    font-weight: 600;
    border: 1.5px solid #a5ccbc;
    background: #f5f9f6;
    color: #2c5e54;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.wlp-social-button:hover {
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
    color: #2c5e54;
    text-decoration: none;
}

.wlp-social-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
}

.wlp-social-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.wlp-social-apple {
    background: #000;
    color: #fff;
    border-color: #000;
}

.wlp-social-apple:hover {
    color: #fff;
}

.wlp-social-apple .wlp-social-icon svg path {
    fill: #fff;
}

.wlp-social-hint {
    font-family: brandon-grotesque, sans-serif;
    font-size: 12px;
    color: #8b9a8f;
    text-align: center;
    margin: 2px 0 0;
    font-style: italic;
}

.wlp-login-divider {
    text-align: center;
    margin: 8px 0 10px;
    position: relative;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #8b9a8f;
}

.wlp-login-divider::before,
.wlp-login-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #e2ece7;
}

.wlp-login-divider::before {
    left: 0;
}

.wlp-login-divider::after {
    right: 0;
}

.wlp-login-divider span {
    background: #fff;
    padding: 0 8px;
}

/* Rendered on WooCommerce login/register forms (fallback) */
.wlp-social-login--wc-form {
    margin-bottom: 20px;
}

/* Error message styling */
.login-popup-error {
    background: #fafbfa;
    border: 1px solid #e2ece7;
    border-left: 3px solid #c0392b;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 10px;
    color: #333;
    font-size: 13px;
    line-height: 1.4;
    font-family: brandon-grotesque, sans-serif;
}

.login-popup-error a {
    color: #2c5e54;
    text-decoration: underline;
}

.login-popup-error a:hover {
    color: #1f7a73;
}

/* Links */
.login-popup-content p {
    font-size: 13px;
    color: #555;
    text-align: center;
}

.login-popup-content p a {
    color: #2c5e54;
    text-decoration: underline;
}

.login-popup-content p a:hover {
    color: #1f7a73;
}

/* Mobile */
@media only screen and (max-width: 480px) {
    .login-popup-content {
        width: auto;
        left: 4vw;
        right: 4vw;
        transform: translateY(-50%);
        padding: 24px 20px;
        max-height: 85vh;
    }

    .login-popup-content h2 {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .login-popup-close {
        top: 8px;
        right: 10px;
    }
}
