@font-face{
    font-family:IRANSansWeb;font-weight:900;font-style:normal;
    src:url(../fonts/IRANSansWeb.woff2) format("woff");
}

body {
    font-family: 'IRANSansWeb', sans-serif;
    direction: rtl;
    text-align: right;
    transition: background-color 0.5s ease, color 0.5s ease;
    background: linear-gradient(to bottom right, #7c3aed, #ec4899, #4f46e5);
}

.dark body {
    background: linear-gradient(to bottom right, #1e293b, #003994, #000);
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

input:focus {
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(30, 144, 255, 0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: translateY(0);
}

.bg-white {
    background-color: rgba(255, 255, 255, 0.15);
}

.dark .bg-white {
    background-color: rgba(255, 255, 255, 0.1);
}

.bg-opacity-90 {
    background-color: rgba(255, 255, 255, 0.15);
}

.dark .bg-opacity-90 {
    background-color: rgba(31, 41, 55, 0.61);
    border: solid 1px #383737;
}

.dark .text-gray-800 {
    color: #f3f4f6;
}

.backdrop-blur-lg {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

form {
    text-align: right;
}

label {
    display: block;
    text-align: right;
    color: #374151;
    transition: color 0.3s ease;
}

.dark label {
    color: #d1d5db;
}

input {
    text-align: right;
}

.flex.items-center.justify-between {
    flex-direction: row-reverse;
}

button[type="submit"] {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    background-color: #1E90FF;
}

button[type="submit"]:hover {
    background-color: #1C86EE;
}

.dark button[type="submit"] {
    background-color: #1C86EE;
}

.dark button[type="submit"]:hover {
    background-color: #1874CD;
}

#button-loader {
    margin-right: 8px;
}

.max-w-md {
    max-width: 28rem;
    min-width: 400px;
}

@media (max-width: 640px) {
    .max-w-md {
        max-width: 100%;
        min-width: 0;
        /*margin: 0 1rem;*/
    }
    header {
        padding: 1rem;
    }
    img.w-\[300px\] {
        width: 150px;
    }
}

h2 {
    text-align: right;
}

header {
    position: relative;
}

#theme-toggle {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

#theme-icon {
    transition: transform 0.5s ease;
}

#theme-toggle:hover #theme-icon {
    transform: rotate(180deg);
}

#mainLogo{
    max-width: 300px !important;
}

.p-8 {
    padding: 10px !important;
}



.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.popup-content {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 90%;
    text-align: center;
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}
.popup.active .popup-content {
    transform: scale(1);
    opacity: 1;
}
.close-btn {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    cursor: pointer;
}