/* =============================================================================
   Oleaf — Login / Register / Forgot Password Styles
   @version 3.0.0
   ============================================================================= */

.oleaf-auth-wrap {
    display: flex;
    min-height: 70vh;
    background: #f8faf8;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
    margin: 30px auto;
    max-width: 960px;
}

.oleaf-auth-brand {
    flex: 0 0 400px;
    background: linear-gradient(160deg, var(--oleaf-primary, #2D6E2E) 0%, var(--oleaf-primary-dark, #1A4A1B) 100%);
    color: #fff;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.oleaf-auth-brand-inner {
    position: relative;
    z-index: 2;
}

.oleaf-auth-brand-logo img {
    max-width: 160px;
    height: auto;
    margin-bottom: 32px;
    filter: brightness(0) invert(1);
}

.oleaf-auth-brand-logo h1 {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin: 0 0 32px !important;
    text-transform: none !important;
}

.oleaf-auth-brand-heading {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 0 0 12px !important;
    line-height: 1.2 !important;
    text-transform: none !important;
}

.oleaf-auth-brand-text {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 32px;
}

.oleaf-auth-brand-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.oleaf-auth-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.oleaf-auth-feature svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.oleaf-auth-brand-deco {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.oleaf-auth-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.oleaf-auth-circle-1 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    right: -80px;
}

.oleaf-auth-circle-2 {
    width: 180px;
    height: 180px;
    top: -60px;
    left: -40px;
}

.oleaf-auth-wrap .oleaf-auth-forms {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 40px;
    background: #fff;
}

.oleaf-auth-wrap .oleaf-auth-forms-inner {
    width: 100%;
    max-width: 380px;
}

.oleaf-auth-form-logo {
    text-align: center;
    margin-bottom: 20px;
}

.oleaf-auth-form-logo img {
    max-height: 48px;
    width: auto;
    max-width: 180px;
    display: block;
    margin: 0 auto;
}

.oleaf-auth-form-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--oleaf-text, #2c2c2c);
}

.oleaf-auth-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: var(--oleaf-text, #2c2c2c) !important;
    margin: 0 0 6px !important;
    text-transform: none !important;
}

.oleaf-auth-subtitle {
    font-size: 14px;
    color: #888;
    margin: 0 0 28px;
}

.oleaf-auth-tabs {
    display: flex;
    background: #f4f6f4;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 28px;
    gap: 4px;
}

.oleaf-auth-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: none;
    letter-spacing: 0;
}

.oleaf-auth-tab.active {
    background: #fff;
    color: var(--oleaf-primary, #2D6E2E);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.oleaf-auth-tab:hover:not(.active) {
    color: var(--oleaf-text, #2c2c2c);
}

.oleaf-auth-panel {
    display: none;
}

.oleaf-auth-panel.active {
    display: block;
    animation: oleafAuthFade 0.25s ease;
}

@keyframes oleafAuthFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.oleaf-auth-wrap .woocommerce-form,
.oleaf-auth-wrap form {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
}

.oleaf-auth-wrap .woocommerce-form p,
.oleaf-auth-wrap .form-row,
.oleaf-auth-wrap .woocommerce-form-row {
    margin: 0 !important;
    padding: 0 !important;
}

.oleaf-auth-wrap .woocommerce-form .lost_password,
.oleaf-auth-wrap .woocommerce-LostPassword {
    display: none !important;
}

.oleaf-auth-wrap .oleaf-auth-field {
    margin: 0 0 20px !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

.oleaf-auth-wrap .oleaf-auth-field>label,
.oleaf-auth-wrap .oleaf-auth-field label,
.woocommerce .oleaf-auth-field>label,
.woocommerce form .oleaf-auth-field label {
    display: block !important;
    float: none !important;
    position: static !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--oleaf-text, #2c2c2c) !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1.4 !important;
    background: none !important;
    border: none !important;
    width: auto !important;
    text-align: left !important;
}

/* Input Wrap */
.oleaf-auth-input-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    border: 2px solid var(--oleaf-border, #e0e0e0) !important;
    border-radius: 12px !important;
    padding: 0 14px !important;
    background: #fff !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    margin: 0 !important;
    float: none !important;
    position: relative !important;
    box-sizing: border-box !important;
    min-height: 48px !important;
}

.oleaf-auth-input-wrap:focus-within {
    border-color: var(--oleaf-primary, #2D6E2E) !important;
    box-shadow: 0 0 0 3px rgba(45, 110, 46, 0.1) !important;
}

.oleaf-auth-input-wrap>svg {
    flex-shrink: 0 !important;
    width: 18px !important;
    height: 18px !important;
    color: #bbb !important;
    transition: color 0.2s !important;
}

.oleaf-auth-input-wrap:focus-within>svg {
    color: var(--oleaf-primary, #2D6E2E) !important;
}

.oleaf-auth-input-wrap .password-input,
.oleaf-auth-input-wrap span.password-input {
    display: contents !important;
}

.show-password-input,
.oleaf-auth-input-wrap .show-password-input,
.password-input .show-password-input {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

.oleaf-auth-input-wrap input,
.oleaf-auth-input-wrap input.input-text,
.oleaf-auth-input-wrap input[type="text"],
.oleaf-auth-input-wrap input[type="email"],
.oleaf-auth-input-wrap input[type="password"],
.woocommerce form .oleaf-auth-input-wrap input[type="text"],
.woocommerce form .oleaf-auth-input-wrap input[type="email"],
.woocommerce form .oleaf-auth-input-wrap input[type="password"] {
    flex: 1 !important;
    border: none !important;
    background: transparent !important;
    padding: 12px 0 !important;
    font-size: 14px !important;
    color: var(--oleaf-text, #2c2c2c) !important;
    outline: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    min-width: 0 !important;
    width: auto !important;
    float: none !important;
    height: auto !important;
    line-height: 1.5 !important;
    border-radius: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.oleaf-auth-input-wrap input::placeholder {
    color: #bbb !important;
    opacity: 1 !important;
}

/* Password Toggle */
.oleaf-auth-toggle-pw,
.woocommerce .oleaf-auth-toggle-pw,
button.oleaf-auth-toggle-pw {
    flex-shrink: 0 !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 6px !important;
    margin: 0 !important;
    color: #bbb !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 6px !important;
    outline: none !important;
    box-shadow: none !important;
    transition: color 0.2s, background 0.2s !important;
}

.oleaf-auth-toggle-pw:hover,
.woocommerce .oleaf-auth-toggle-pw:hover {
    color: var(--oleaf-primary, #2D6E2E) !important;
    background: rgba(45, 110, 46, 0.06) !important;
}

.oleaf-auth-toggle-pw .oleaf-eye-open,
.oleaf-auth-toggle-pw .oleaf-eye-closed {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
}

.oleaf-auth-toggle-pw .oleaf-eye-open {
    display: block !important;
}

.oleaf-auth-toggle-pw .oleaf-eye-closed {
    display: none !important;
}

.oleaf-auth-toggle-pw.pw-visible .oleaf-eye-open {
    display: none !important;
}

.oleaf-auth-toggle-pw.pw-visible .oleaf-eye-closed {
    display: block !important;
}

.oleaf-auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 24px !important;
    padding: 0 !important;
}

.oleaf-auth-remember {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer;
    font-size: 13px !important;
    color: #666 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.oleaf-auth-remember input[type="checkbox"],
.oleaf-auth-remember .woocommerce-form__input-checkbox {
    display: inline-block !important;
    float: none !important;
    flex-shrink: 0 !important;
    width: 15px !important;
    height: 15px !important;
    min-width: 15px !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
    accent-color: var(--oleaf-primary, #2D6E2E);
}

.oleaf-auth-remember span {
    display: inline !important;
    float: none !important;
    vertical-align: middle !important;
    line-height: 1 !important;
}

.oleaf-auth-forgot {
    font-size: 13px;
    font-weight: 500;
    color: var(--oleaf-primary, #2D6E2E);
    text-decoration: none;
    transition: color 0.15s;
}

.oleaf-auth-forgot:hover {
    color: var(--oleaf-primary-dark, #1A4A1B);
    text-decoration: underline;
}

.oleaf-auth-submit {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 13px 24px !important;
    border: none !important;
    border-radius: 12px !important;
    background: var(--oleaf-primary, #2D6E2E) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
    height: auto !important;
    min-height: auto !important;
    box-sizing: border-box !important;
}

.oleaf-auth-submit:hover {
    background: var(--oleaf-primary-dark, #1A4A1B) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(45, 110, 46, 0.25) !important;
    color: #fff !important;
}

.oleaf-auth-submit svg {
    display: inline !important;
    flex-shrink: 0 !important;
    width: 18px !important;
    height: 18px !important;
    transition: transform 0.2s;
}

.oleaf-auth-submit:hover svg {
    transform: translateX(3px);
}

.oleaf-auth-submit span {
    display: inline !important;
    color: inherit !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}

.oleaf-auth-submit .oleaf-btn-spinner {
    display: none !important;
    width: 16px !important;
    height: 16px !important;
    animation: oleafSpin 0.8s linear infinite;
}

.oleaf-auth-submit.oleaf-btn-loading {
    opacity: 0.82 !important;
    cursor: not-allowed !important;
}

.oleaf-auth-submit.oleaf-btn-loading:hover {
    transform: none !important;
    box-shadow: none !important;
}

.oleaf-auth-submit.oleaf-btn-loading .oleaf-btn-spinner {
    display: inline-block !important;
}

.oleaf-auth-submit.oleaf-btn-loading .oleaf-btn-arrow {
    display: none !important;
}

@keyframes oleafSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.oleaf-auth-submit-register {
    margin-top: 8px !important;
}

.oleaf-auth-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #888;
    background: #f8faf8;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--oleaf-border, #e2e2e2);
    margin: 0 0 20px;
    line-height: 1.5;
}

.oleaf-auth-note svg {
    flex-shrink: 0;
    margin-top: 1px;
    width: 16px !important;
    height: 16px !important;
    color: var(--oleaf-primary, #2D6E2E);
}

.oleaf-ajax-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 18px;
    animation: oleafAuthFade 0.25s ease both;
}

.oleaf-ajax-notice svg {
    flex-shrink: 0;
    width: 16px !important;
    height: 16px !important;
    margin-top: 1px;
}

.oleaf-ajax-notice--error {
    background: #fff5f5;
    border-left: 3px solid #e53e3e;
    color: #c53030;
}

.oleaf-ajax-notice--error svg {
    stroke: #e53e3e;
}

.oleaf-ajax-notice--success {
    background: #f0faf0;
    border-left: 3px solid var(--oleaf-primary, #2D6E2E);
    color: #2a5a2a;
}

.oleaf-ajax-notice--success svg {
    stroke: var(--oleaf-primary, #2D6E2E);
}

.oleaf-fp-header {
    text-align: center;
    margin-bottom: 28px;
}

.oleaf-fp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--oleaf-primary, #2D6E2E), var(--oleaf-primary-dark, #1E5420));
    color: #fff;
    margin: 0 auto 16px;
    box-shadow: 0 6px 20px rgba(45, 110, 46, 0.22);
    animation: oleafFpIconPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.oleaf-fp-icon svg {
    width: 26px;
    height: 26px;
}

@keyframes oleafFpIconPop {
    from {
        transform: scale(0.6);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.oleaf-fp-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--oleaf-text, #2c2c2c) !important;
    margin: 0 0 6px !important;
    text-transform: none !important;
}

.oleaf-fp-subtitle {
    font-size: 14px;
    color: #888;
    margin: 0 0 28px;
    line-height: 1.5;
}

/* Field */
.oleaf-fp-field {
    margin: 0 0 20px;
}

.oleaf-fp-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--oleaf-text, #2c2c2c);
    margin: 0 0 8px;
}

.oleaf-fp-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid var(--oleaf-border, #e0e0e0);
    border-radius: 12px;
    padding: 0 14px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-height: 48px;
    box-sizing: border-box;
}

.oleaf-fp-input-wrap:focus-within {
    border-color: var(--oleaf-primary, #2D6E2E);
    box-shadow: 0 0 0 3px rgba(45, 110, 46, 0.1);
}

.oleaf-fp-input-wrap svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #bbb;
    transition: color 0.2s;
}

.oleaf-fp-input-wrap:focus-within svg {
    color: var(--oleaf-primary, #2D6E2E);
}

.oleaf-fp-input-wrap input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 0;
    font-size: 14px;
    color: var(--oleaf-text, #2c2c2c);
    outline: none;
    box-shadow: none;
    min-width: 0;
    font-family: inherit;
}

.oleaf-fp-input-wrap input::placeholder {
    color: #bbb;
}

/* Button */
.oleaf-fp-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 24px;
    background: var(--oleaf-primary, #2D6E2E);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.4;
    box-sizing: border-box;
}

.oleaf-fp-btn:hover {
    background: var(--oleaf-primary-dark, #1A4A1B);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(45, 110, 46, 0.25);
    color: #fff;
}

.oleaf-fp-btn-text {
    display: inline;
    color: inherit;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.oleaf-fp-btn-arrow {
    display: inline;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    transition: transform 0.2s;
}

.oleaf-fp-btn:hover .oleaf-fp-btn-arrow {
    transform: translateX(3px);
}

.oleaf-fp-btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    animation: oleafSpin 0.8s linear infinite;
    flex-shrink: 0;
}

.oleaf-fp-btn.oleaf-fp-loading {
    opacity: 0.8;
    cursor: not-allowed;
}

.oleaf-fp-btn.oleaf-fp-loading .oleaf-fp-btn-spinner {
    display: inline-block;
}

.oleaf-fp-btn.oleaf-fp-loading .oleaf-fp-btn-arrow {
    display: none;
}

.oleaf-fp-btn.oleaf-fp-loading:hover {
    transform: none;
    box-shadow: none;
}

/* Back link */
.oleaf-fp-back {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.oleaf-fp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #888;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.oleaf-fp-back-link:hover {
    color: var(--oleaf-primary, #2D6E2E);
    background: rgba(45, 110, 46, 0.06);
}

.oleaf-fp-back-link svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.oleaf-fp-back-link:hover svg {
    transform: translateX(-3px);
}

/* WooCommerce notices inside forgot wrap */
.oleaf-forgot-wrap .woocommerce-message,
.oleaf-forgot-wrap .woocommerce-error,
.oleaf-forgot-wrap .woocommerce-info {
    border-radius: 10px !important;
    font-size: 13px !important;
    margin: 0 0 20px !important;
    padding: 12px 16px !important;
    list-style: none !important;
}

.oleaf-forgot-wrap .woocommerce-message {
    background: #f0faf0 !important;
    border-left: 3px solid var(--oleaf-primary, #2D6E2E) !important;
    color: #2a5a2a !important;
}

.oleaf-forgot-wrap .woocommerce-error {
    background: #fff5f5 !important;
    border-left: 3px solid #e53e3e !important;
    color: #c53030 !important;
}

/* Success State (generated by login.js showSuccess()) */
.oleaf-forgot-success {
    text-align: center;
    padding: 16px 0;
    animation: oleafAuthFade 0.4s ease both;
}

.oleaf-forgot-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--oleaf-primary, #2D6E2E), var(--oleaf-primary-dark, #1E5420));
    color: #fff;
    margin: 0 auto 20px;
    box-shadow: 0 10px 28px rgba(45, 110, 46, 0.28);
    animation: oleafFpIconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.oleaf-forgot-success-icon svg {
    width: 32px !important;
    height: 32px !important;
}

.oleaf-forgot-success-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--oleaf-text, #2c2c2c) !important;
    margin: 0 0 10px !important;
}

.oleaf-forgot-success-msg {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 24px;
}

.oleaf-forgot-retry-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: var(--oleaf-primary, #2D6E2E);
    text-decoration: none;
    padding: 8px 18px;
    border: 1.5px solid var(--oleaf-primary, #2D6E2E);
    border-radius: 8px;
    transition: all 0.2s;
}

.oleaf-forgot-retry-link:hover {
    background: var(--oleaf-primary, #2D6E2E);
    color: #fff;
}

@media (max-width: 768px) {
    .oleaf-auth-wrap {
        flex-direction: column;
        min-height: auto;
        margin: 16px;
        border-radius: 16px;
    }

    .oleaf-auth-brand {
        flex: none;
        padding: 32px 24px;
    }

    .oleaf-auth-brand-heading {
        font-size: 22px !important;
    }

    .oleaf-auth-brand-text {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .oleaf-auth-brand-features {
        gap: 10px;
    }

    .oleaf-auth-forms {
        padding: 32px 24px;
    }

    .oleaf-auth-circle-1,
    .oleaf-auth-circle-2 {
        display: none;
    }
}

@media (max-width: 480px) {
    .oleaf-auth-wrap {
        margin: 10px;
    }

    .oleaf-auth-brand {
        padding: 24px 20px;
    }

    .oleaf-auth-brand-heading {
        font-size: 20px !important;
    }

    .oleaf-auth-forms {
        padding: 24px 20px;
    }

    .oleaf-auth-tabs {
        margin-bottom: 22px;
    }

    .oleaf-auth-tab {
        font-size: 13px;
        padding: 9px 12px;
    }
}

.oleaf-login-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    backdrop-filter: blur(3px);
}

.oleaf-login-overlay.active {
    display: block;
}

.oleaf-login-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    z-index: 99999;
    width: 90%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.oleaf-login-popup.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.oleaf-login-popup-inner {
    padding: 32px 32px 28px;
    position: relative;
}

.oleaf-login-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #f4f4f4;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    transition: background 0.15s, color 0.15s;
    padding: 0;
    flex-shrink: 0;
}

.oleaf-login-close:hover {
    background: #e8e8e8;
    color: #222;
}

.oleaf-login-close svg {
    width: 16px;
    height: 16px;
    display: block;
}

.oleaf-login-header {
    text-align: center;
    margin-bottom: 24px;
}

.oleaf-login-header svg {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    color: var(--oleaf-primary, #2D6E2E);
    stroke: var(--oleaf-primary, #2D6E2E);
}

.oleaf-login-popup .oleaf-login-header h3,
.oleaf-login-header h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--oleaf-text, #1a1a1a) !important;
    margin: 0 0 4px !important;
    line-height: 1.3 !important;
    text-transform: none !important;
    text-align: center !important;
}

.oleaf-login-popup .oleaf-login-header p,
.oleaf-login-header p {
    font-size: 13px !important;
    color: #888 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
    text-align: center !important;
}

.oleaf-login-form {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.oleaf-form-group {
    margin-bottom: 16px;
}

.oleaf-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--oleaf-text, #2c2c2c);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.oleaf-form-group input[type="text"],
.oleaf-form-group input[type="email"],
.oleaf-form-group input[type="password"] {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--oleaf-border, #e0e0e0);
    border-radius: 10px;
    font-size: 14px;
    color: var(--oleaf-text, #2c2c2c);
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.oleaf-form-group input[type="text"]:focus,
.oleaf-form-group input[type="email"]:focus,
.oleaf-form-group input[type="password"]:focus {
    border-color: var(--oleaf-primary, #2D6E2E);
    box-shadow: 0 0 0 3px rgba(45, 110, 46, 0.1);
}

.oleaf-form-group input::placeholder {
    color: #bbb;
}

.oleaf-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.oleaf-remember-me {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #888;
    cursor: pointer;
}

.oleaf-remember-me input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--oleaf-primary, #2D6E2E);
    margin: 0;
    flex-shrink: 0;
}

.oleaf-forgot-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--oleaf-primary, #2D6E2E);
    text-decoration: none;
    transition: opacity 0.15s;
}

.oleaf-forgot-link:hover {
    opacity: 0.75;
    text-decoration: underline;
}

.oleaf-btn.oleaf-btn-primary.oleaf-btn-full {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 12px 20px !important;
    background: var(--oleaf-primary, #2D6E2E) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    text-decoration: none !important;
}

.oleaf-btn.oleaf-btn-primary.oleaf-btn-full:hover {
    background: var(--oleaf-primary-dark, #1A4A1B) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(45, 110, 46, 0.28) !important;
    color: #fff !important;
}

.oleaf-login-footer {
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
    color: #888;
}

.oleaf-login-footer span {
    display: inline;
}

.oleaf-login-footer a {
    font-weight: 600;
    color: var(--oleaf-primary, #2D6E2E);
    text-decoration: none;
    margin-left: 4px;
    transition: opacity 0.15s;
}

.oleaf-login-footer a:hover {
    opacity: 0.75;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .oleaf-login-popup-inner {
        padding: 24px 20px 20px;
    }
}