@font-face {
    font-family: "nazanin";
    src: url("./src/Far_Nazanin.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}
html[dir="rtl"],
html[dir="rtl"] body,
html[dir="rtl"] * {
  font-family: "nazanin"  !important;
  font-size: 21px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--accent-primary);
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
}

.bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: blur(10px);
    transform: scale(1.05);
}

#overlay {
    position: fixed;
    inset: 0;
    background: rgba(19, 13, 0, 0.6);
    z-index: -1;
}

.haomamc {
    margin-top: 30px;
    width: 400px;
    max-width: 80%;
}

.wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 40px;
    perspective: 1200px;
}

.flip-container {
    width: 500px;
    max-width: 90%;
    height: 540px;
    perspective: 1200px;
    overflow: hidden;
    border-radius: 25px;
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-inner.flipped {
    transform: rotateY(180deg);
}

.flip-front,
.flip-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 25px;
}

.flip-back {
    transform: rotateY(180deg);
}

.sign-up-box,
.sign-in-box {
    width: 100%;
    height: 100%;
    background: rgba(44, 30, 15, 0.75);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 0 15px rgba(138, 110, 36, 0.3);
    backdrop-filter: blur(10px);
    padding: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
}

.sign-up-box::-webkit-scrollbar,
.sign-in-box::-webkit-scrollbar {
    width: 4px;
}

.sign-up-box::-webkit-scrollbar-thumb,
.sign-in-box::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.signu {
    margin-top: 35px;
    font-size: 35px;
    color: var(--text-primary);
    flex-shrink: 0;
}

.up-form {
    width: 80%;
    margin: 30px auto 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
}

.input-box {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

.input-box input {
    width: 100%;
    height: 55px;
    padding: 0 15px;
    background: rgba(19, 13, 0, 0.7);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--accent-primary);
    font-size: 21px;
    outline: none;
    transition: 0.3s;
}

.input-box input:hover {
    border-color: var(--text-muted);
}

.input-box input:focus {
    border-color: var(--text-primary);
    box-shadow: 0 0 8px var(--text-primary);
}

.input-box label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    pointer-events: none;
    padding: 0 8px;
    transition: 0.3s;
}

.input-box input:focus+label,
.input-box input:valid+label {
    top: 0;
    font-size: 12px;
    color: var(--text-primary);
    background-color: rgba(44, 30, 15, 0.7);
    backdrop-filter: blur(14px);
    border-radius: 20px;
}

.submit-btn {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 55px;
    border: none;
    border-radius: 12px;
    background: var(--text-primary);
    color: var(--bg-primary);
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 5px;
    flex-shrink: 0;
}

.submit-btn:hover {
    background: #e6ae2e;
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn span {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: rgba(255, 255, 255, 0.45);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.eye {
    color: var(--text-muted);
    width: 25px;
    height: 25px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    transition: 0.3s;
    display: none;
}

.eye:hover {
    color: var(--text-primary);
}

.hidden {
    display: none;
}

.error {
    position: absolute;
    left: 15px;
    bottom: -22px;
    color: #AB3012;
    font-size: 13px;
    opacity: 0;
    transform: translateY(-5px);
    transition: 0.3s;
    pointer-events: none;
}

.error.show {
    opacity: 1;
    transform: translateY(0);
}

.error-pass {
    position: absolute;
    left: 15px;
    bottom: -22px;
    color: #AB3012;
    font-size: 13px;
    opacity: 1;
    transform: translateY(-5px);
    transition: 0.3s;
    pointer-events: none;
}
.error,.error-pass{
  transform: translateY(5px);
}
.input-box.error-input input {
    border-color: #AB3012;
    box-shadow: 0 0 8px rgba(171, 48, 18, 0.5);
}

.input-box.error-input label {
    color: #AB3012 !important;
}

.input-box.success-input input {
    border-color: var(--text-primary);
    box-shadow: 0 0 8px rgba(255, 193, 68, 0.5);
}

.input-box.success-input label {
    color: var(--text-primary) !important;
}

.ch-sign-in {
    color: var(--text-primary);
    font-size: 15px;
    text-decoration: none;
    margin-top: 5px;
    display: inline-block;
    transition: 0.3s;
    cursor: pointer;
    flex-shrink: 0;
}

.ch-sign-in:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.g_id_signin {
    margin-top: 5px;
    margin-left: 10px;
    display: flex;
    justify-content: center;
}

#skeleton-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

#skeleton-loader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.skeleton-page {
    width: 500px;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.skeleton-haoma {
    width: 400px;
    max-width: 80%;
    height: 80px;
    border-radius: 15px;
    background: var(--bg-secondary);
}

.skeleton-card {
    width: 100%;
    height: 540px;
    border-radius: 25px;
    background: rgba(44, 30, 15, 0.75);
    border: 2px solid var(--bg-secondary);
    padding: 35px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.skeleton-title {
    width: 45%;
    height: 35px;
    margin: 0 auto 20px;
    border-radius: 10px;
    background: var(--bg-secondary);
}

.skeleton-input {
    width: 100%;
    height: 55px;
    border-radius: 12px;
    background: #1F2937;
}

.skeleton-button {
    width: 100%;
    height: 55px;
    border-radius: 12px;
    background: var(--border-color);
    margin-top: auto;
}

.skeleton-link {
    width: 120px;
    height: 15px;
    border-radius: 10px;
    background: var(--bg-secondary);
    margin: auto;
}

.skeleton-social {
    width: 192px;
    height: 40px;
    border-radius: 20px;
    background: #1F2937;
    margin: auto;
}

.skeleton-haoma,
.skeleton-card,
.skeleton-title,
.skeleton-input,
.skeleton-button,
.skeleton-link,
.skeleton-social {
    position: relative;
    overflow: hidden;
}

.skeleton-haoma::after,
.skeleton-card::after,
.skeleton-title::after,
.skeleton-input::after,
.skeleton-button::after,
.skeleton-link::after,
.skeleton-social::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 193, 68, 0.25), transparent);
    animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

.discord-btn {
    background-color: #1F2937;
    border: none;
    height: 40px;
    width: 192.06px;
    border-radius: 20px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.discord-txt {
    width: 130.06px;
    height: 16.8px;
    color: var(--accent-primary);
    font-size: 0.875rem;
    margin-left: 37px;
}

.dis-svg-box {
    position: absolute !important;
    height: 36px;
    width: 36px;
    background-color: var(--bg-secondary);
    border-radius: 50%;
    margin-top: 0;
    margin-left: 3px;
}

.dis-svg {
    margin-top: 25%;
    height: 18px;
    width: 18px;
}

.dis {
    justify-items: center;
    align-items: center;
    text-align: center;
    margin-top: 5px;
    background-color: #252b65;
    border: none;
    height: 40px;
    width: 192.06px;
    max-width: 500px;
    width: calc(100% - 40px);
    border-radius: 20px;
    color: var(--accent-primary);
    font-size: 0.875rem;
    font-family: Google Sans, arial, sans-serif;
    margin-right: auto;
    margin-left: auto;
    transition: all 0.2s ease;
    cursor: pointer;
}

.dis:hover {
    background-color: #7289da;
}

.discord-btn:hover {
    background-color: #7289da;
}

.dis:hover .discord-txt {
    color: #1e1700;
}

.emt {
    height: 10px;
    width: 10px;
}

.back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 18px 9px 13px;
    background: #211b12;
    color: #b89a58;
    border: 1px solid #8f743b;
    border-radius: 5px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.back-icon {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
}

.back:hover {
    background: #2b2418;
    color: #d0b36b;
    border-color: #b89a58;
}

.back:active {
    background: #18130d;
}

.back:focus-visible {
    outline: 1px solid #b89a58;
    outline-offset: 3px;
}

.back1 {
    position: absolute;
    left: 10px;
    top: 10px;
}

a.dis,
a.goog,
a.discord-btn-link {
    display: flex;
    text-decoration: none;
    color: var(--accent-primary);
}

.cf-turnstile {
    margin: 10px auto;
    display: flex;
    justify-content: center;
}

#signupFormError,
#signinFormError,
#forgotFormError,
#resetFormError,
#verifyFormError {
    display: block;
    position: static;
    margin-top: -15px;
    margin-bottom: 10px;
    min-height: 16px;
}

.otp-input {
    width: 100%;
    height: 55px;
    padding: 0 15px;
    background: rgba(19, 13, 0, 0.7);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--accent-primary);
    font-size: 22px;
    letter-spacing: 8px;
    text-align: center;
    outline: none;
    transition: 0.3s;
}

.otp-input:focus {
    border-color: var(--text-primary);
    box-shadow: 0 0 8px var(--text-primary);
}

.resend-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 5px;
    font-size: 14px;
}

.resend-link {
    color: var(--text-primary);
    cursor: pointer;
    text-decoration: none;
}

.resend-link.disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    pointer-events: none;
}

.success-msg {
    color: var(--text-primary);
    font-size: 14px;
    margin-top: 10px;
}

.small-box {
    width: 420px;
    max-width: 92%;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(19, 13, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-overlay.hidden {
    display: none;
}

.modal-box {
    background: rgba(44, 30, 15, 0.96);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 30px 25px;
    width: 360px;
    max-width: 90%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 0 15px rgba(138, 110, 36, 0.2);
    text-align: center;
}

.modal-box h2 {
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--accent-primary);
}

.modal-box p {
    color: var(--text-muted);
    font-size: 14px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-btn-primary,
.modal-btn-secondary {
    flex: 1;
    height: 45px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.modal-btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.modal-btn-secondary {
    background: var(--bg-secondary);
    color: var(--accent-primary);
}

#captchaModalWidget {
    display: flex;
    justify-content: center;
}

.d-g-btn {
    display: flex !important;
    gap: 10px;
    align-items: center;
}

.goog {
    background: linear-gradient(203deg, rgba(30, 10, 10, 1) 0%, rgba(40, 30, 5, 1) 33%, rgba(10, 40, 20, 1) 71%, rgba(10, 20, 45, 1) 96%);
    position: relative;
    overflow: hidden;
    justify-items: center;
    align-items: center;
    text-align: center;
    margin-top: 5px;
    border: none;
    height: 40px;
    width: 192.06px;
    max-width: 500px;
    width: calc(100% - 40px);
    border-radius: 20px;
    color: #fff;
    font-size: 0.875rem;
    font-family: Google Sans, arial, sans-serif;
    margin-right: auto;
    margin-left: auto;
    transition: all 0.2s ease;
    cursor: pointer;
    z-index: 1;
}

.goog::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(203deg, #EA4335 0%, #FBBC05 33%, #34A853 71%, #4285F4 96%);
    background-size: 200% 200%;
    animation: googleFlow 3.5s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.goog:hover::before {
    opacity: 1;
}

.goog-svg-box {
    position: absolute !important;
    height: 36px;
    width: 36px;
    background-color: var(--bg-secondary);
    border-radius: 50%;
    margin-top: 0;
    margin-left: 3px;
}

.goog-svg-box svg {
    margin-top: 25%;
    height: 18px;
    width: 18px;
}

.goog-txt {
    width: 130.06px;
    height: 16.8px;
    color: var(--accent-primary);
    font-size: 0.875rem;
    margin-left: 37px;
}

.goog:hover .goog-txt {
    color: #1e1700;
}

@keyframes googleFlow {
    0% {
        background-position: 50% 0%;
    }
    50% {
        background-position: 50% 100%;
    }
    100% {
        background-position: 50% 0%;
    }
}
#signupFormError,
#signinFormError,
#forgotFormError,
#resetFormError,
#verifyFormError {
    margin-top: 10px !important;
    margin-bottom: 20px !important;
}