﻿/* ===== Buttons ===== meysam mazarei - rivanx.com */
.btnlogout,
.stylebtnlogin,
.stylebtnforget,
.styleeditphone {
    margin-top: 10px;
    cursor: pointer;
    outline: none;
    border: none;
    border-radius: 10px;
    font-weight: bold;
}

.btnlogout {
    height: 30px;
    font-size: 15px;
    background-color: #a69800;
    color: black;
}

    .btnlogout:hover,
    .btnlogout:active {
        background-color: #a68100;
    }

.stylebtnlogin,
.stylebtnforget {
    height: 60px;
    font-size: 20px;
    color: black;
}

.stylebtnlogin {
    background-color: #70a600;
}

    .stylebtnlogin:hover,
    .stylebtnlogin:active {
        background-color: #5fcb00;
    }

.stylebtnforget {
    background-color: #a6b403;
}

    .stylebtnforget:hover,
    .stylebtnforget:active {
        background-color: #7d8800;
    }

.styleeditphone {
    width: 150px;
    height: 40px;
    background-color: #ffcc00;
}

    .styleeditphone:hover,
    .styleeditphone:active {
        background-color: #d39b00;
    }

.stylecodeaccept {
    width: 150px;
    height: 40px;
}

/* ===== Popup Styles ===== */
@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

#popupBackdrop {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
}

#popupWindow {
    display: none;
    position: fixed;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 450px;
    background-color: rgb(255 255 255 / 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 25px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    z-index: 1000;
    color: var(--colortext);
    text-align: center;
    opacity: 0;
    margin-top: -20px;
    transition: opacity 0.3s ease, height 0.4s ease;
}

    #popupWindow.show {
        animation: popupFadeIn 0.4s ease forwards;
    }

    #popupWindow button {
        border: none;
        padding: 10px 20px;
        border-radius: 8px;
        cursor: pointer;
        margin-top: 20px;
        font-family: 'YekanBakhFaNum', sans-serif;
        transition: background-color 0.3s ease;
    }

        #popupWindow button:hover {
            background-color: var(--button-hover-color);
        }

/* ===== Input Styles ===== */
.boxiconinput {
    padding: 5px;
    border-radius: 5px;
    background-color: rgb(255 255 255 / 16%);
    height: 35px;
    width: 40px;
}

.boxtextinput {
    padding: 5px;
    height: 35px;
    width: 300px;
}

.textlogininput {
    width: 90%;
    height: 40px;
    font-size: 20px;
    background: transparent;
    color: var(--colortext);
    border: none;
    outline: none;
    box-shadow: none;
    padding: 0;
    margin: 2px 0 0 0;
    appearance: none;
    border-radius: 5px;
}

    .textlogininput::placeholder {
        color: #505050;
        opacity: 1;
    }

    .textlogininput:focus::placeholder {
        color: transparent;
    }

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: var(--colortext) !important;
    caret-color: var(--colortext) !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

.textboxinput {
    background-color: rgba(0,0,0,0.43);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px;
    border-radius: 10px;
    width:300px;
}

.input-warning {
    border: 2px solid yellow !important;
    border-radius: 10px;
    padding: 5px;
}

.textcodebox {
    background-color: rgba(0,0,0,0.63);
    border-radius: 10px;
}

/* Remove number spinner */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

/* ===== Common Utils ===== */
.fontfamily {
    font-family: 'YekanBakhFaNum', sans-serif;
}
.fontfamilyen {
    font-family: 'YekanBakhFaEn', sans-serif;
}

.no-select {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.inverted-icon {
    margin-top: 3px;
    filter: invert(1);
}

.center-line {
    width: 40px;
    height: 1px;
    background-color: rgba(255,255,255,0.25);
    margin: 10px auto 0;
}

/* ===== Links ===== */
.forgot-link,
.back-link,
.signin-link {
    cursor: pointer;
    color: var(--colortext);
    transition: color 0.3s ease;
}

    .forgot-link:hover {
        color: #ffcc00;
    }

.back-link {
    font-weight: bold;
}

    .back-link:hover {
        color: #a7a7a7;
    }

.signin-link {
    font-weight: bold;
}

    .signin-link:hover {
        color: #1bdb00;
    }

/* ===== Animations ===== */
@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideFromRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(30px);
    }
}

@keyframes slideToRightAndFade {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(40px);
    }
}

.animate-in, .animate-right {
    opacity: 0;
}

    .animate-in.show {
        animation: slideFadeIn 0.5s ease forwards;
    }

    .animate-right.show {
        animation: slideFromRight 0.5s ease forwards;
    }

    .animate-in.hide {
        animation: slideFadeOut 0.5s ease forwards;
    }

    .animate-right.hide {
        animation: slideToRightAndFade 0.5s ease forwards;
    }

/* ===== Profile Section ===== */
.profile-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.profile-icon-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 10px solid #a69800;
    background-color: var(--color900);
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    overflow: hidden;
}

    .profile-icon-circle img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* ===== Bottom Section ===== */
.bottom-section {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin-top: 15px;
    width: 100%;
    direction: rtl;
    gap: 10px;
}

.left-side, .right-side {
    width: 45%;
    text-align: right;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.vertical-divider {
    width: 1.5px;
    background-color: var(--color400);
    margin: 0 5px;
    align-self: stretch;
}

.textstylelists {
    float: right;
    margin-top: 10px;
    font-size: 14px;
}

/* ===== Subscription Stars ===== */
.subscription-container {
    text-align: center;
    font-family: 'Vazirmatn', sans-serif;
}

.stars-row {
    font-size: 32px;
}

.subscription-label {
    margin-top: 8px;
    font-size: 18px;
    color: var(--colortext);
}

@keyframes glowFlash {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255,255,255,0.2);
        transform: scale(1);
    }

    50% {
        text-shadow: 0 0 25px rgba(255,255,255,1);
        transform: scale(1.3);
    }
}

.star {
    margin: 0 6px;
    font-size: 32px;
    color: #555;
    transition: color 0.3s ease;
}

    .star.silver {
        color: silver;
        animation: glowFlash 2s infinite ease-in-out;
        animation-delay: 0.1s;
    }

    .star.bronze {
        color: #cd7f32;
        animation: glowFlash 2s infinite ease-in-out;
        animation-delay: 0.3s;
    }

    .star.gold {
        color: gold;
        animation: glowFlash 2s infinite ease-in-out;
    }

#star1.gold {
    animation-delay: 0s;
}

#star2.gold {
    animation-delay: 0.2s;
}

#star3.gold {
    animation-delay: 0.4s;
}

#star1.bronze {
    animation-delay: 0s;
}

#star2.bronze {
    animation-delay: 0.25s;
}
