/* Acyber SMS Auth - WooCommerce My Account */
.woocommerce-account .woocommerce {
    direction: rtl;
}

/* در حالت مهمان، فرم ورود پیامکی عرض مناسب داشته باشد */
.woocommerce-account .woocommerce .acyber-auth-wrapper {
    width: min(100%, 460px);
    margin: 30px auto;
}

.acyber-auth-wrapper,
.acyber-auth-wrapper * {
    box-sizing: border-box;
}

.acyber-auth-wrapper {
    direction: rtl;
    position: relative;
    padding: 32px;
    background:
            radial-gradient(circle at top right, rgba(124, 58, 237, .11), transparent 45%),
            #ffffff;
    border: 1px solid #ebe7f2;
    border-radius: 24px;
    box-shadow: 0 16px 45px rgba(39, 20, 75, .10);
    font-family: inherit;
    overflow: hidden;
}

.acyber-auth-wrapper::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    top: -95px;
    left: -75px;
    border-radius: 50%;
    background: rgba(124, 58, 237, .08);
    pointer-events: none;
}

.acyber-auth-wrapper h3 {
    position: relative;
    margin: 0 0 10px;
    color: #281344;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.7;
    text-align: center;
}

.acyber-auth-wrapper .desc {
    position: relative;
    margin: 0 auto 26px;
    max-width: 340px;
    color: #746983;
    font-size: 13px;
    font-weight: 500;
    line-height: 2;
    text-align: center;
}

.acyber-auth-form-group {
    position: relative;
    margin-bottom: 18px;
}

.acyber-auth-form-group label {
    display: block;
    margin: 0 0 8px;
    color: #423154;
    font-size: 13px;
    font-weight: 700;
}

.acyber-auth-input {
    display: block;
    width: 100%;
    height: 52px;
    padding: 10px 16px;
    color: #291842;
    background: #fff;
    border: 1px solid #ded6e9;
    border-radius: 14px;
    outline: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    direction: ltr;
    letter-spacing: 1px;
    transition: .2s ease;
}

.acyber-auth-input::placeholder {
    color: #a69bb4;
    font-weight: 500;
}

.acyber-auth-input:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, .13);
}

#acyber_otp {
    font-size: 20px;
    letter-spacing: 7px;
}

.acyber-auth-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 12px 18px;
    color: #fff !important;
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    border: 0;
    border-radius: 14px;
    box-shadow: 0 10px 20px rgba(109, 40, 217, .23);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.acyber-auth-btn:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(109, 40, 217, .30);
}

.acyber-auth-btn:disabled {
    opacity: .7;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

.acyber-auth-msg {
    display: none;
    margin: 18px 0 0;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.8;
    text-align: center;
    direction: rtl;
    unicode-bidi: embed;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.acyber-auth-msg.success {
    color: #0d5a35;
    background-color: #ecfdf3;
    border: 1px solid #d3f9e2;
}

.acyber-auth-msg.error {
    color: #9e1a1a;
    background-color: #fff5f5;
    border: 1px solid #ffe3e3;
}


.acyber-auth-timer {
    margin-top: 18px;
    color: #6d28d9;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    transition: .2s ease;
}

.acyber-auth-timer:not(.disabled) {
    cursor: pointer;
}

.acyber-auth-timer:not(.disabled):hover {
    color: #4c1d95;
}

.acyber-auth-timer.disabled {
    color: #9a8eaa;
    cursor: not-allowed;
    font-weight: 600;
}

/* حالت موبایل */
@media (max-width: 575px) {
    .woocommerce-account .woocommerce .acyber-auth-wrapper {
        margin: 18px auto;
    }

    .acyber-auth-wrapper {
        padding: 25px 18px;
        border-radius: 19px;
    }

    .acyber-auth-wrapper h3 {
        font-size: 19px;
    }
}


.acyber-auth-wrapper {
    position: relative;
}

.acyber-auth-wrapper .acyber-auth-msg {
    position: static !important;
    display: none;
    width: 100%;
    clear: both;
    margin: 18px 0 3em !important;
    padding: 12px 14px;
    direction: rtl;
    text-align: center;
    box-sizing: border-box;
}

.acyber-auth-wrapper .acyber-auth-msg.success {
    color: #087443;
    background: #eafaf2;
    border: 1px solid #bfead4;
}

.acyber-auth-wrapper .acyber-auth-msg.error {
    color: #b42318;
    background: #fff0f0;
    border: 1px solid #ffd0d0;
}


/* صفحه ورود پیامکی: جلوگیری از قرارگیری Notice ووکامرس کنار فرم */
body.woocommerce-account:not(.logged-in) .woocommerce {
    display: block !important;
}

/* فرم ورود در وسط صفحه */
body.woocommerce-account:not(.logged-in) .woocommerce .acyber-auth-wrapper {
    width: min(100%, 460px);
    margin: 30px auto;
}

/* پیام‌های ووکامرس نیز بالای فرم و با عرض مناسب باشند */
body.woocommerce-account:not(.logged-in) .woocommerce-notices-wrapper {
    width: min(100%, 460px);
    margin: 20px auto;
}
