/**
 * Softpple Plus — Digiland WooCommerce My Account Styling
 * Provides scoped, RTL-native styling for My Account mobile login, signup, and recovery.
 */

.softpple-myaccount-wrapper,
.softpple-recovery-wrapper {
    max-width: 440px;
    margin: 30px auto;
    padding: 32px 28px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
    font-family: inherit;
}

.softpple-auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.softpple-auth-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.softpple-auth-desc {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* Tabs */
.softpple-auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}

.softpple-tab-btn {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
    background: transparent;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.softpple-tab-btn:hover {
    color: #ef394e;
    background: #fff5f5;
}

.softpple-tab-btn.active {
    color: #ef394e;
    background: #fef2f2;
    border-bottom: 2px solid #ef394e;
}

/* Form controls */
.softpple-field-group {
    margin-bottom: 18px;
}

.softpple-field-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.softpple-field-group input[type="tel"],
.softpple-field-group input[type="email"],
.softpple-field-group input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    background: #fff;
    color: #111827;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.softpple-field-group input:focus {
    border-color: #ef394e;
    box-shadow: 0 0 0 3px rgba(239, 57, 78, 0.12);
}

/* Primary buttons */
.softpple-myaccount-wrapper .button.btn_get_otp,
.softpple-myaccount-wrapper .button.btn_verify_otp,
.softpple-recovery-wrapper .button.btn_get_otp,
.softpple-recovery-wrapper .button.btn_verify_otp {
    width: 100%;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff !important;
    background-color: #ef394e !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(239, 57, 78, 0.25);
}

.softpple-myaccount-wrapper .button.btn_get_otp:hover,
.softpple-myaccount-wrapper .button.btn_verify_otp:hover,
.softpple-recovery-wrapper .button.btn_get_otp:hover,
.softpple-recovery-wrapper .button.btn_verify_otp:hover {
    background-color: #dc2626 !important;
}

.softpple-myaccount-wrapper .button.loading,
.softpple-recovery-wrapper .button.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

/* OTP Boxes */
.otp-inputs-wrapper {
    display: flex;
    gap: 8px;
    justify-content: center;
    direction: ltr !important;
    margin: 20px 0;
}

.otp-inputs-wrapper input.otp_field {
    width: 44px;
    height: 52px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    outline: none;
    transition: all 0.2s ease;
}

.otp-inputs-wrapper input.otp_field:focus {
    border-color: #ef394e;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(239, 57, 78, 0.15);
}

/* OTP Meta row */
.softpple-otp-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin: 12px 0 16px 0;
}

.edit_phoneno {
    color: #ef394e;
    text-decoration: underline;
    cursor: pointer;
}

.resend_otp {
    color: #ef394e;
    cursor: pointer;
    font-weight: 500;
}

.resend_otp.disabled {
    color: #9ca3af;
    pointer-events: none;
    cursor: default;
    opacity: 0.6;
}

.otp_counter {
    font-weight: 600;
    margin-right: 4px;
}

/* Notices */
.softpple-auth-notice {
    border-radius: 8px;
    padding: 11px 16px;
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Sub-links / Navigation */
.softpple-sub-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    font-size: 13px;
}

.lost-password-link,
.back-to-login-link {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.lost-password-link:hover,
.back-to-login-link:hover {
    color: #ef394e;
    text-decoration: underline;
}

/* Panels */
.softpple-tab-panel {
    display: none;
}

.softpple-tab-panel.active {
    display: block;
}
