/* =========================================================
   LOGINPAKISTAN - CUSTOMER ACCOUNT / AUTH STYLES
   Scoped strictly to .lp-account-auth and child elements
========================================================= */

.lp-account-auth,
.lp-account-auth * {
    box-sizing: border-box;
}

.lp-account-auth {
    --lp-green: #0b4b31;
    --lp-green-dark: #073a27;
    --lp-green-soft: #eaf2ed;
    --lp-gold: #d3a243;
    --lp-gold-dark: #b77f1e;
    --lp-gold-soft: #fcf6e8;
    --lp-cream: #fffaf2;
    --lp-cream-2: #f8f1e6;
    --lp-cream-3: #fbf5ea;
    --lp-text: #252925;
    --lp-muted: #68716b;
    --lp-border: #e7dfd4;
    --lp-error-bg: #fff5f5;
    --lp-error-border: #f5c6cb;
    --lp-error-text: #721c24;

    width: 100%;
    padding: 48px 20px;
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--lp-text);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* ---------------------------------------------------------
   CARD STRUCTURE
--------------------------------------------------------- */

.lp-account-auth__card {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border: 1px solid var(--lp-border);
    border-radius: 12px;
    padding: 44px 36px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    margin: 0 auto;
}

.lp-register-card {
    max-width: 520px;
}

/* ---------------------------------------------------------
   HEADER & TYPOGRAPHY
--------------------------------------------------------- */

.lp-account-auth__header {
    text-align: center;
    margin-bottom: 28px;
}

.lp-account-auth__icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--lp-green-soft);
    color: var(--lp-green);
    border-radius: 50%;
    margin-bottom: 16px;
}

.lp-account-auth__brand-icon {
    width: 26px;
    height: 26px;
}

.lp-account-auth__title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--lp-green);
    margin: 0 0 10px 0;
    padding: 0;
}

.lp-account-auth__subtitle {
    font-size: 14px;
    line-height: 1.55;
    color: var(--lp-muted);
    margin: 0;
    padding: 0;
}

/* ---------------------------------------------------------
   INLINE NOTICES
--------------------------------------------------------- */

.lp-account-auth__notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 13.5px;
    line-height: 1.5;
}

.lp-account-auth__notice--error {
    background-color: var(--lp-error-bg);
    border: 1px solid var(--lp-error-border);
    color: var(--lp-error-text);
}

.lp-account-auth__notice-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.lp-account-auth__notice-content p {
    margin: 0 0 6px 0;
}

.lp-account-auth__notice-content p:last-child {
    margin-bottom: 0;
}

.lp-account-auth__notice-content a {
    color: var(--lp-green);
    font-weight: 600;
    text-decoration: underline;
}

/* ---------------------------------------------------------
   FORM FIELDS & LABELS
--------------------------------------------------------- */

.lp-account-auth__form {
    margin: 0;
    padding: 0;
}

.lp-account-auth__field {
    margin-bottom: 20px;
}

.lp-account-auth__label {
    display: block;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--lp-text);
    margin-bottom: 7px;
}

.lp-account-auth__required {
    color: #c92a2a;
    margin-left: 2px;
}

.lp-account-auth__input,
.lp-account-auth__select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-family: inherit;
    font-size: 14.5px;
    color: var(--lp-text);
    background-color: #ffffff;
    border: 1px solid #d5cdc3;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.lp-account-auth__input:focus,
.lp-account-auth__select:focus {
    border-color: var(--lp-green);
    box-shadow: 0 0 0 3px rgba(11, 75, 49, 0.12);
    background-color: #ffffff;
}

.lp-account-auth__input::placeholder {
    color: #9ea7a1;
}

.lp-account-auth__helper {
    display: block;
    font-size: 12px;
    color: var(--lp-muted);
    margin-top: 5px;
}

/* ---------------------------------------------------------
   PASSWORD WRAPPER & SHOW/HIDE BUTTON
--------------------------------------------------------- */

.lp-account-auth__pw-wrap {
    position: relative;
    width: 100%;
}

.lp-account-auth__input--pw {
    padding-right: 48px;
}

.lp-account-auth__toggle-pw {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--lp-muted);
    cursor: pointer;
    padding: 0;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.lp-account-auth__toggle-pw:hover {
    color: var(--lp-green);
    background: var(--lp-green-soft);
}

.lp-account-auth__toggle-pw:focus-visible {
    outline: 2px solid var(--lp-gold);
    outline-offset: 1px;
}

.lp-account-auth__toggle-pw svg {
    width: 18px;
    height: 18px;
}

/* ---------------------------------------------------------
   CONTROLS ROW (REMEMBER ME + FORGOT PASSWORD)
--------------------------------------------------------- */

.lp-account-auth__controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 13.5px;
}

.lp-account-auth__checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.lp-account-auth__checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--lp-green);
    cursor: pointer;
    margin: 0;
}

.lp-account-auth__checkbox-text {
    color: var(--lp-muted);
    font-size: 13px;
}

.lp-account-auth__forgot-link {
    color: var(--lp-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.15s ease;
}

.lp-account-auth__forgot-link:hover {
    color: var(--lp-green);
    text-decoration: underline;
}

/* ---------------------------------------------------------
   SUBMIT BUTTON & ACTION BUTTONS
--------------------------------------------------------- */

.lp-account-auth__submit-wrap {
    margin-top: 8px;
}

.lp-account-auth__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    background-color: var(--lp-green);
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.lp-account-auth__submit:hover {
    background-color: var(--lp-green-dark);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(11, 75, 49, 0.25);
}

.lp-account-auth__submit:active {
    transform: translateY(1px);
}

.lp-account-auth__submit:focus-visible {
    outline: 2px solid var(--lp-gold);
    outline-offset: 2px;
}

/* ---------------------------------------------------------
   ACTIONS (FOR SIGNED-IN STATE)
--------------------------------------------------------- */

.lp-account-auth__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
}

.lp-account-auth__secondary-link {
    font-size: 13.5px;
    color: var(--lp-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.lp-account-auth__secondary-link:hover {
    color: #c92a2a;
    text-decoration: underline;
}

/* ---------------------------------------------------------
   FOOTER CROSS-LINKS
--------------------------------------------------------- */

.lp-account-auth__footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--lp-border);
    font-size: 14px;
}

.lp-account-auth__footer-text {
    color: var(--lp-muted);
}

.lp-account-auth__footer-link {
    color: var(--lp-green);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.lp-account-auth__footer-link:hover {
    color: var(--lp-green-dark);
    text-decoration: underline;
}

/* ---------------------------------------------------------
   RESPONSIVE DESIGN (MOBILE & SMALL SCREENS)
--------------------------------------------------------- */

@media (max-width: 600px) {
    .lp-account-auth {
        padding: 24px 12px;
    }

    .lp-account-auth__card {
        padding: 30px 20px;
        border-radius: 10px;
    }

    .lp-account-auth__title {
        font-size: 24px;
    }

    .lp-account-auth__controls-row {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .lp-account-auth__input,
    .lp-account-auth__select,
    .lp-account-auth__submit {
        height: 46px;
    }
}
