body {
    margin: 0;
    padding: 0;
    font-family: 'Shabnam', sans-serif;
    background: linear-gradient(120deg, #000e3c, #000522);
    color: white;
}

/* --------------------------------------------- */

/* شروع نوار هدر */

.main-nav {
    position: fixed;
    width: 100%;
    background: rgba(30, 64, 175, 0.45);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.658);
    z-index: 1000;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    background: linear-gradient(to right,
            #1e40af80 0%,
            #0f172a99 100%);
    transition: all 0.5s ease;
}

@supports not (backdrop-filter: blur(12px)) {
    .main-nav {
        background: linear-gradient(135deg, #1e40af 0%, #0f172a 100%);
        opacity: 0.95;
    }
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 3rem;
    width: 3rem;
    margin-left: 0.75rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.logo-highlight {
    color: #60a5fa;
}

.desktop-menu {
    display: none;
}

@media (min-width: 768px) {
    .desktop-menu {
        display: flex;
        gap: 2rem;
    }
}

.nav-link {
    color: white;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: #93c5fd;
    transform: translateY(-5px);
}

.nav-link::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #93c5fd;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-button {
    display: block;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .mobile-menu-button {
        display: none;
    }
}

.menu-icon {
    color: white;
    font-size: 1.5rem;
}

.mobile-menu {
    display: none;
    background-color: rgba(30, 58, 138, 0.95);
    backdrop-filter: blur(10px);
    width: 100%;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-container {
    padding: 1rem 1.5rem;
}

.mobile-nav-link {
    display: block;
    color: white;
    padding: 1rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: #93c5fd;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu.active .mobile-nav-link {
    animation: slideDown 0.3s ease forwards;
}

.mobile-menu.active .mobile-nav-link:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-menu.active .mobile-nav-link:nth-child(2) {
    animation-delay: 0.2s;
}

.mobile-menu.active .mobile-nav-link:nth-child(3) {
    animation-delay: 0.3s;
}

.mobile-menu.active .mobile-nav-link:nth-child(4) {
    animation-delay: 0.4s;
}

.mobile-menu.active .mobile-nav-link:nth-child(5) {
    animation-delay: 0.5s;
}

.mobile-menu.active .mobile-nav-link:nth-child(6) {
    animation-delay: 0.6s;
}

:root {
    --primary: #4361ee;
    --secondary: #3f37c9;
    --white: #ffffff;
}

.auth-btn {
    left: 20px;
    top: -9px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 31px;
    color: var(--white);
    font-family: 'Yekan', 'Segoe UI', Tahoma, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
}

.auth-btn:hover {
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.4);
}

.auth-btn:active {
    transform: translateY(1px);
}

.auth-btn i {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: -30px;
    font-size: 1rem;
    left: 117px;
    top: 3px;
    border-right: 2px solid #ffffff;
    padding-right: 10px;
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.auth-btn:hover::before {
    left: 100%;
}

.user-info {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #1e293b;
    /* slate-800 */
    padding: 8px 16px;
    border-radius: 12px;
    color: #ffffff;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.user-info:hover {
    background-color: #334155;
    /* slate-700 */
}

.user-icon {
    color: #38bdf8;
    /* sky-400 */
    font-size: 16px;
}

.username-text {
    font-size: 15px;
}

.account-menu {
    position: relative;
    display: inline-block;
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    direction: rtl;
}

.account-header {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    background-color: #1e293b;
    color: white;
    font-weight: bold;
    transition: background-color 0.3s;
}

.account-header:hover {
    background-color: #334155;
}

.account-name {
    font-size: 14px;
}

.arrow-icon {
    transition: transform 0.3s ease;
}

.rotate-up {
    transform: rotate(180deg);
}

.account-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1000;
    width: 200px;
    animation: fadeIn 0.3s ease;
}

.account-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.account-dropdown li {
    border-bottom: 1px solid #f0f0f0;
}

.account-dropdown li:last-child {
    border-bottom: none;
}

.account-dropdown a {
    display: block;
    padding: 10px 16px;
    color: #1e293b;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
    font-weight: bold;
}

.account-dropdown a:hover {
    background-color: #f3f4f6;
}

.account-dropdown a i {
    margin-left: 8px;
    color: #6b7280;
    /* خاکستری ملایم */
}

.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* اتمام نوار هدر */

/* --------------------------------------------- */

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100vh;
    padding: 100px 50px 50px;
    gap: 2rem;
    box-sizing: border-box;
}

.form-section {
    flex: 1;
    max-width: 450px;
    animation: fadeInUp 0.6s ease;
}

h2 {
    padding: 10px;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: bold;
    font-family: 'Shabnam', sans-serif;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    background-color: #1D283A;
}

.tab.active {
    background: gold;
    color: black;
}

.tab.inactive {
    background: #1c2230;
    color: white;
}

#togglePassword {
    position: absolute;
    right: 15px;
    top: 55%;
    transform: translateY(-50%);
    cursor: pointer;
    color: rgb(128, 128, 128);
    font-size: 1.1rem;
    user-select: none;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.fix-number {
    font-size: 0.9rem;
    color: #2563eb;
    text-decoration: none;
    margin-right: 8px;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
}

.fix-number:hover {
    color: #1d4ed8;
}

input {
    width: 100%;
    padding: 15px;
    border-radius: 50px;
    border: none;
    outline: none;
    font-size: 16px;
    margin-bottom: 20px;
}

input[type="text"],
[type="password"] {
    width: 100%;
    padding: 14px 12px;
    margin: 10px 0;
    border: 1px solid #ffffff;
    border-radius: 15px;
    background-color: #D9DFED;
    font-size: 14px;
    outline: none;
    transition: 0.3s ease;
    direction: ltr;
    text-align: left;
    font-family: 'Shabnam', sans-serif;
    font-weight: bold;
    color: black;
}

input::placeholder {
    direction: ltr;
    text-align: left;
    font-family: 'Shabnam', sans-serif;
}

input:focus {
    color: black;
    border-color: #000000;
    background-color: #e4e9fb;
}

.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    min-width: 250px;
    max-width: 350px;
    padding: 12px 16px;
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.4s ease, fadeOut 0.4s ease 3s forwards;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.notification.success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.notification i {
    font-size: 1.2rem;
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(120%);
    }
}

.submit-btn {
    width: 100%;
    padding: 15px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(45deg, gold, goldenrod);
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    color: black;
    transition: background 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
    background: linear-gradient(45deg, goldenrod, gold);
    transform: translateY(-2px);
}

.links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 14px;
    flex-wrap: wrap;
}

.links a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.links a:hover {
    color: gold;
}

.links span {
    color: white;
}

.code-inputs {
    direction: rtl;
    gap: 10px;
}

.code-box {
    width: 55px;
    height: 65px;
    font-size: 28px;
    /* اعداد بزرگ‌تر */
    text-align: center;
    /* افقی وسط */
    line-height: 65px;
    /* عمودی وسط (هم اندازه height) */
    border: 2px solid #d1d5db;
    border-radius: 12px;
    outline: none;
    transition: all 0.25s ease-in-out;
    background-color: #f9fafb;
}

.code-box:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.code-box:hover {
    border-color: #2563eb;
    /* آبی پررنگ‌تر */
}

.code-box.filled {
    border: 2px solid rgb(0, 255, 34);
    background-color: #ecfdf1;
}

.resend-btn {
    background: transparent;
    border: 1px solid yellow;
    border-radius: 50px;
    padding: 15px;
    font-weight: bold;
    cursor: not-allowed;
    color: #333;
    transition: all 0.3s ease;
}

.resend-btn.active {
    cursor: pointer;
    color: #2563eb;
    border-color: #2700a7;
}

.image-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-wrapper img {
    max-width: 350px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ------------------- ریسپانسیو ------------------- */

/* موبایل (تا 768px) */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 90px 20px 40px;
        text-align: center;
    }

    .form-section {
        max-width: 100%;
    }

    h2 {
        font-size: 1.4rem;
    }

    .image-section {
        order: -1;
        /* عکس بالا بیاد */
        margin-bottom: 20px;
    }

    .phone-wrapper img {
        max-width: 220px;
    }

    .tab-buttons {
        flex-direction: column;
        gap: 8px;
    }

    input[type="text"],
    input[type="password"] {
        font-size: 13px;
        padding: 12px;
    }

    @keyframes slideIn {
        from {
            transform: translateY(-120%);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    @keyframes fadeOut {
        to {
            opacity: 0;
            transform: translateY(-120%);
        }
    }

    .submit-btn {
        font-size: 16px;
        padding: 12px;
    }
}

/* تبلت (بین 769px تا 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        flex-direction: row;
        gap: 1.5rem;
        padding: 100px 30px 50px;
    }

    .form-section {
        max-width: 400px;
    }

    h2 {
        font-size: 1.6rem;
    }

    .phone-wrapper img {
        max-width: 280px;
    }

    .tab-buttons {
        gap: 12px;
    }

    input[type="text"],
    input[type="password"] {
        font-size: 14px;
        padding: 13px;
    }

    .submit-btn {
        font-size: 17px;
    }
}

/* لپتاپ و دسکتاپ بزرگ (بیشتر از 1024px) */
@media (min-width: 1025px) {
    .container {
        flex-direction: row;
        justify-content: space-between;
        gap: 2rem;
        padding: 120px 60px 50px;
    }

    .form-section {
        max-width: 450px;
    }

    h2 {
        font-size: 1.8rem;
    }

    .phone-wrapper img {
        max-width: 350px;
    }
}