/* ── BCP Login & Register Forms ── */

/* Reset & Container */
.bcp-lr-form-wrap {
    display: none;
    max-width: 480px;
    margin: 0 auto;
    padding: 32px 28px;
    background: #f5f0eb;
    border-radius: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
}
.bcp-lr-form-wrap * {
    box-sizing: border-box;
}
.bcp-lr-form-wrap.bcp-lr-active {
    display: block;
}

/* ── Tab Switcher (Pill) ── */
.bcp-lr-tabs {
    display: flex;
    background: #e8e3de;
    border-radius: 50px;
    padding: 4px;
    margin-bottom: 24px;
    gap: 4px;
}
.bcp-lr-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 50px;
    background: transparent;
    color: #5a5a5a;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    line-height: 1.2;
}
.bcp-lr-tab.bcp-lr-tab-active {
    background: #1a4d2e;
    color: #fff;
    box-shadow: 0 2px 8px rgba(26, 77, 46, 0.3);
}
.bcp-lr-tab:hover:not(.bcp-lr-tab-active) {
    background: #ddd8d2;
}

/* ── Title ── */
.bcp-lr-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px;
    text-align: center;
}

/* ── Form Fields ── */
.bcp-lr-field {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}
.bcp-lr-field label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}
.bcp-lr-req {
    color: #dc3545;
}
.bcp-lr-field input {
    padding: 11px 14px;
    border: 1.5px solid #ccc7c0;
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
    color: #1a1a1a;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.bcp-lr-field input:focus {
    outline: none;
    border-color: #1a6b4a;
    box-shadow: 0 0 0 3px rgba(26, 107, 74, 0.12);
}
.bcp-lr-field input::placeholder {
    color: #aaa;
}

/* ── Two-column Row ── */
.bcp-lr-row {
    display: flex;
    gap: 12px;
}
@media (max-width: 480px) {
    .bcp-lr-row {
        flex-direction: column;
        gap: 0;
    }
}

/* ── Password Field with Eye ── */
.bcp-lr-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.bcp-lr-password-wrap input {
    padding-right: 44px;
}
.bcp-lr-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}
.bcp-lr-eye:hover {
    color: #333;
}

/* ── Forgot Password ── */
.bcp-lr-forgot {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 13px;
    color: #1a6b4a;
    text-decoration: none;
    font-weight: 500;
}
.bcp-lr-forgot:hover {
    text-decoration: underline;
}

/* ── Submit Button ── */
.bcp-lr-btn {
    width: 100%;
    padding: 13px 20px;
    background: #1a6b4a;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    position: relative;
}
.bcp-lr-btn:hover {
    background: #155a3e;
}
.bcp-lr-btn:active {
    transform: scale(0.98);
}
.bcp-lr-btn:disabled {
    background: #7eb89e;
    cursor: not-allowed;
}
.bcp-lr-btn .bcp-lr-btn-loading {
    display: none;
}
.bcp-lr-btn.bcp-lr-loading .bcp-lr-btn-text {
    display: none;
}
.bcp-lr-btn.bcp-lr-loading .bcp-lr-btn-loading {
    display: inline;
}

/* ── Divider ── */
.bcp-lr-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    gap: 12px;
}
.bcp-lr-divider::before,
.bcp-lr-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ccc7c0;
}
.bcp-lr-divider span {
    font-size: 13px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Switch Button ── */
.bcp-lr-switch-btn {
    width: 100%;
    padding: 12px 20px;
    background: transparent;
    color: #1a6b4a;
    border: 1.5px solid #1a6b4a;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.bcp-lr-switch-btn:hover {
    background: #1a6b4a;
    color: #fff;
}

/* ── Switch Text / Link ── */
.bcp-lr-switch-text {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}
.bcp-lr-switch-link {
    background: none;
    border: none;
    color: #1a6b4a;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    text-decoration: underline;
}
.bcp-lr-switch-link:hover {
    color: #155a3e;
}

/* ── Messages ── */
.bcp-lr-message {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    display: none;
}
.bcp-lr-message.bcp-lr-msg-error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}
.bcp-lr-message.bcp-lr-msg-success {
    display: block;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #86efac;
}

/* ── Reseller toggle (button) ── */
.bcp-lr-reseller-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 4px 0 12px !important;
    padding: 0 !important;
    font-size: 14px !important;
    color: #333 !important;
    cursor: pointer !important;
    user-select: none !important;
    background: none !important;
    border: none !important;
    width: auto !important;
    text-align: left !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
    outline: none !important;
}
.bcp-lr-reseller-toggle:hover .bcp-lr-reseller-toggle__box {
    border-color: #155a3e !important;
}
.bcp-lr-reseller-toggle__box {
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    border: 2px solid #1a6b4a !important;
    border-radius: 4px !important;
    background: #fff !important;
    flex-shrink: 0 !important;
    position: relative !important;
    transition: background 0.15s ease, border-color 0.15s ease !important;
}
.bcp-lr-reseller-toggle__box::after {
    content: '' !important;
    position: absolute !important;
    left: 5px !important;
    top: 1px !important;
    width: 6px !important;
    height: 11px !important;
    border: solid #fff !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) scale(0) !important;
    transition: transform 0.15s ease !important;
}
.bcp-lr-reseller-toggle[aria-pressed="true"] .bcp-lr-reseller-toggle__box {
    background: #1a6b4a !important;
    border-color: #1a6b4a !important;
}
.bcp-lr-reseller-toggle[aria-pressed="true"] .bcp-lr-reseller-toggle__box::after {
    transform: rotate(45deg) scale(1) !important;
}
.bcp-lr-reseller-toggle__text {
    font-weight: 500 !important;
    color: #333 !important;
}

/* ── Reseller fields transition ── */
.bcp-lr-reseller-fields {
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.35s ease, margin 0.35s ease;
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
}
.bcp-lr-reseller-fields.bcp-lr-visible {
    max-height: 600px !important;
    opacity: 1 !important;
    margin-bottom: 8px !important;
}

/* ── User Greeting Shortcode ── */
.bcp-lr-greeting {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0 !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    vertical-align: middle !important;
    line-height: 1 !important;
    padding: 0 !important;
    background: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
    outline: none !important;
}
.bcp-lr-greeting__icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}
.bcp-lr-greeting__icon img {
    display: block !important;
    width: 27px !important;
    height: 27px !important;
    border: none !important;
    box-shadow: none !important;
}
.bcp-lr-greeting--logged-in {
    background: #E9874D !important;
    border-radius: 50px !important;
    padding: 5px 16px 5px 7px !important;
    gap: 8px !important;
    transition: background 0.2s ease !important;
    max-width: 220px !important;
}
.bcp-lr-greeting--logged-in:hover {
    background: #d97a43 !important;
    text-decoration: none !important;
}
.bcp-lr-greeting__text {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #F5F0EC !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 150px !important;
}
.bcp-lr-greeting--logged-out {
    background: none !important;
    padding: 0 !important;
    transition: opacity 0.2s ease !important;
}
.bcp-lr-greeting--logged-out:hover {
    opacity: 0.7 !important;
}
