﻿:root {
    --primary-color: #53bee8;
    --secondary-color: #715ebd;
    --accent-color: #CFDFE5;
    --success-color: #4CAF50;
    --danger-color: #FF5252;
    --gear-color: #7a23a1;
    --bg-primary: #b0b6d4;
    --bg-secondary: #ffffff;
    --bg-tertiary: #2d2d2d;
    --text-primary: #212529;
    --text-secondary: #e8ecf0;
    --text-light: #ffffff;
    --border-color: #8e8da4;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --circle-1-color: #FF5252;
    --circle-2-color: #4CAF50;
    --circle-3-color: #2196F3;
    --circle-4-color: #03A9F4;
    --line-2-color: rgba(97, 51, 150, 0.8);
    --line-4-color: rgba(97, 51, 150, 0.8);
    --bs-form: rgba(73, 65, 164, 0.95);
    --text-color1: #E8E2FD;
    --text-color2: #E8E2FD;
    --bg-footer-1: #3a4192;
    --bg-footer-2: #3a1877;
    --bs-border-sec-social: #a7c4f0;
    --bs-bg-social: #8487df;
    --line-gradient: linear-gradient(90deg, rgba(140, 150, 220, 0.1) 0%, rgba(160, 170, 240, 0.8) 30%, rgba(160, 170, 240, 0.8) 70%, rgba(140, 150, 220, 0.1) 100%);
    --line-solid-color: rgba(150, 160, 230, 0.8);
    --line-color: rgba(160, 170, 240, 0.6);
    --line-color-faint: rgba(160, 170, 240, 0.2);
    --theme-toggle-light: #302b4b;
    --theme-toggle-dark: #eae0b8;
    --icon-input: #3a4192;
    --input-bg-color: #2d2d2d;
    --input-text-color: #d7ebf4;
}

.dark-mode {
    --primary-color: #7a23a1;
    --secondary-color: #898eca;
    --accent-color: #03A9F4;
    --success-color: #4CAF50;
    --danger-color: #FF5252;
    --gear-color: #b05cdf;
    --bg-primary: #232b4a;
    --bg-secondary: #1e1e1e;
    --bg-tertiary: #2d2d2d;
    --text-primary: #e0e0e0;
    --text-secondary: #d7ebf4;
    --text-light: #ffffff;
    --border-color: #404040;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
    --circle-1-color: #FF5252;
    --circle-2-color: #4CAF50;
    --circle-3-color: #2196F3;
    --circle-4-color: #03A9F4;
    --line-2-color: rgba(98, 50, 110, 0.9);
    --line-4-color: rgba(98, 50, 110, 0.9);
    --bs-form: rgba(19, 15, 45, 0.85);
    --text-color1: #E8E2FD;
    --text-color2: #E8E2FD;
    --bg-footer-1: #0f151a;
    --bg-footer-2: #000;
    --bs-border-sec-social: #434975;
    --bs-bg-social: #18274a;
    --line-gradient: linear-gradient(90deg, rgba(170, 180, 250, 0.15) 0%, rgba(190, 200, 255, 0.9) 30%, rgba(190, 200, 255, 0.9) 70%, rgba(170, 180, 250, 0.15) 100%);
    --line-solid-color: rgba(180, 190, 255, 0.9);
    --line-color: rgba(190, 200, 255, 0.7);
    --line-color-faint: rgba(190, 200, 255, 0.3);
    --theme-toggle-light: #302b4b;
    --theme-toggle-dark: #eae0b8;
    --icon-input: #1a143b;
    --input-bg-color: #d7ebf4;
    --input-text-color: #2d2d2d;
}

.ltr {
    direction: ltr;
}

.rtl {
    direction: rtl;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    background: var(--bg-primary);
    font-family: 'Vazirmatn', 'Vazir', 'IRANSans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Vazirmatn', 'Sahel', 'Vazir', 'IRANSans', sans-serif;
    font-weight: 700;
}

.form-group-captcha,
.form-group label,
.captcha-container label {
    font-family: 'Vazirmatn', 'Vazir', 'IRANSans', sans-serif;
    font-weight: 500;
}

.login-btn, .back-btn {
    font-family: 'Vazirmatn', 'Vazir', 'IRANSans', sans-serif;
    font-weight: 600;
}

.form-input {
    font-family: 'Vazirmatn', 'Vazir', 'IRANSans', sans-serif;
}

.footer {
    font-family: 'Vazirmatn', 'Vazir', 'IRANSans', sans-serif;
}

.fa-num {
    font-feature-settings: "ss01";
}

p, span, div, label {
    line-height: 1.8;
}

*:not([class*="fa-"]):not([class*="glyphicon"]) {
    letter-spacing: 0 !important;
}

.header-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.theme-toggle {
    background: #302b32;
    border: 1px solid #5f57b0;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    font-size: 0.85rem;
    color: #ecea7e;
    transition: all 0.3s ease;
}

.dark-mode .theme-toggle {
    color: var(--theme-toggle-dark);
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    transform: scale(1.05);
    color: #FDE22A;
}

.main-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

.animation-section {
    flex: 0 0 40vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #312929 0%, #14508c 100%);
}

.scene {
    position: relative;
    width: 100%;
    height: 100%;
}

.bg {
    position: absolute;
    width: 100%;
    aspect-ratio: 1.5;
    pointer-events: none;
    z-index: 0;
    border-radius: 100%;
    background: linear-gradient(270deg, #470664, #791595e5 60% 80%, #bd34fe00);
    filter: blur(15vw);
    transform: none;
    opacity: .53;
    left: 0;
    top: -59px;
}

.lines-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.line-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: visible;
    pointer-events: none;
}

.gear-outer {
    position: absolute;
    width: 40vw;
    height: 40vw;
    max-width: 200px;
    max-height: 200px;
    min-width: 100px;
    min-height: 100px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 14;
    animation: rotateGear 20s linear infinite;
}

.gear-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: 1;
}

.gear-tooth {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center;
    z-index: 2;
}

.tooth-large,
.tooth-small {
    width: 40px;
    height: 20px;
    background: #afe0f861;
    clip-path: polygon(0% 0%, 25% 15%, 25% 85%, 0% 100%);
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3), inset 0 0 8px rgba(255, 255, 255, 0.1);
}

 

.center-circle {
    position: absolute;
    width: 26vw;
    height: 26vw;
    max-width: 140px;
    max-height: 140px;
    min-width: 70px;
    min-height: 70px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #FFF 0%, #86d1f6 30%, #7090f0 70%, #ECD4FD 100%);
    z-index: 39;
    overflow: hidden;
}

.center-image {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 12px;
    z-index: 40;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3), 0 0 15px rgba(150, 150, 150, 0.2);
    background-image: url('/themes/default/images/logo-sr1.png');
    background-size: 85%;
    background-position: center;
    background-repeat: no-repeat;
    animation: pulse 4s ease-in-out infinite;
}

.moving-circle {
    position: absolute;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 25;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-glow {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(10px);
    opacity: 0.7;
    z-index: 24;
    transition: all 0.5s ease;
}

.circle-main {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.4), 0 0 20px currentColor;
}

.center-dot {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 10px white, 0 0 20px white;
    z-index: 26;
    filter: blur(0.5px);
    animation: dotPulse 2s ease-in-out infinite;
}

.circle-label {
    font-family: 'Vazirmatn';
    position: absolute;
    top: 18px !important;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 12px;
    font-weight: normal;
    text-shadow: 0 0 10px currentColor;
    white-space: nowrap;
    z-index: 26;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.form-section {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-bottom: 20px;
    margin-top: -80px;
    z-index: 10;
    position: relative;
}

.login-container {
    background: var(--bs-form);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 20px 20px 20px;
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 20;
    margin: 0 15px;
    min-height: 400px;
    transition: min-height 0.3s ease;
}

.form-wrapper {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

    .form-wrapper.active {
        display: block;
        position: relative;
        opacity: 1;
        pointer-events: all;
    }

.form-header {
    text-align: center;
    margin-bottom: 5px;
}

    .form-header h1 {
        font-size: 1.28rem;
        /*  margin-bottom: 10px;
        margin-top: 20px;*/
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        --text-color: #7EA8F9;
        background: radial-gradient(circle 300px at -7% -180%, var(--text-color) 0%, #ffffff 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: 0 0 4px rgba(255, 255, 255, .1), 0 0 14px rgba(130, 168, 236, .2);
    }

        .form-header h1 i {
            color: var(--accent-color);
            font-size: 1.6rem;
        }

    .form-header p {
        color: var(--text-secondary);
        font-size: 0.95rem;
    }

.login-form {
    margin-top: 10px;
}


.form-group {
    margin-bottom: 10px;
    position: relative;
}

    .form-group-captcha label,
    .form-group label {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 8px;
        font-weight: 500;
        font-size: 1rem;
        --text-color: #7EA8F9;
        background: radial-gradient(circle 300px at -7% -180%, var(--text-color) 0%, #ffffff 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: 0 0 4px rgba(255, 255, 255, .1), 0 0 14px rgba(130, 168, 236, .2);
    }

        .form-group-captcha i,
        .form-group label i {
            width: 20px;
            text-align: center;
        }


.form-group-captcha {
    margin-bottom: 0;
    position: relative;
}


.form-input {
    width: 100%;
    /* padding: 10px 10px 10px 40px;*/
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-bg-color) !important;
    color: var(--input-text-color);
    font-size: 11pt;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
}

    .form-input:focus {
        outline: none;
        border-color: var(--accent-color);
        box-shadow: 0 0 0 3px rgba(3, 169, 244, 0.1);
    }

    .form-input::placeholder {
        color: var(--text-secondary);
    }



.form-input-icon {
    padding-left: 40px !important;
}

.toggle-password {
    position: absolute;
    left: 15px;
    top: 48px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--icon-input);
}

.captcha-container {
    margin: 15px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.captcha-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.captcha-image {
    border-radius: 6px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    height: 40px;
}

.captcha-refresh {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
}

    .checkbox input {
        width: 18px;
        height: 18px;
        cursor: pointer;
    }

.forgot-password {
    color: #D3F1FF;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

    .forgot-password:hover {
        text-decoration: none;
        color: #F79771;
    }

.login-btn {
    width: 100%;
    padding: 16px;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    background: radial-gradient(141.42% 141.42% at 100% 0%, #fff6, #fff0), radial-gradient(140.35% 140.35% at 100% 94.74%, #bd34fe, #bd34fe00), radial-gradient(89.94% 89.94% at 18.42% 15.79%, #41d1ff, #41d1ff00);
    box-shadow: 0 1px #ffffffbf inset;
    overflow: hidden;
    z-index: 1;
}

    .login-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.1) 80%, transparent);
        transform: translateX(-100%);
        z-index: -1;
    }

    .login-btn:hover::before {
        animation: cloudFlow 2.5s ease-in-out infinite;
    }

    .login-btn:hover {
        transform: translateY(-2px);
        background: radial-gradient(141.42% 141.42% at 100% 0%, #fff9, #fff3), radial-gradient(140.35% 140.35% at 100% 94.74%, #bd34fe, #bd34fe00), radial-gradient(89.94% 89.94% at 18.42% 15.79%, #41d1ff, #41d1ff00), radial-gradient(120% 120% at 50% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 40%);
        box-shadow: 0 4px 20px rgba(189, 52, 254, 0.3), 0 1px #ffffffbf inset;
        color: #322959;
    }

    .login-btn:active {
        transform: translateY(0);
    }

    .login-btn i {
        font-size: 1.2rem;
        transition: transform 0.3s ease;
    }

    .login-btn:hover i {
        transform: translateX(3px);
    }


    .login-btn.is-disabled,
    .login-btn:disabled {
        cursor: not-allowed;
        pointer-events: none;
        /* ظاهر */
        background: linear-gradient(135deg, #d1d1d1, #b9b9b9);
        color: #6f6f6f;
        box-shadow: none;
        transform: none;
        opacity: 0.75;
    }

        /* غیرفعال کردن افکت‌ها */
        .login-btn.is-disabled::before,
        .login-btn:disabled::before {
            display: none;
        }

        .login-btn.is-disabled i,
        .login-btn:disabled i {
            transform: none;
            opacity: 0.7;
        }


.back-btn {
    width: 100%;
    padding: 16px;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    background: radial-gradient(141.42% 141.42% at 100% 0%, #fff6, #fff0), radial-gradient(140.35% 140.35% at 100% 94.74%, #8a8dff, #8a8dff00), radial-gradient(89.94% 89.94% at 18.42% 15.79%, #9b41ff, #9b41ff00);
    box-shadow: 0 1px #ffffffbf inset;
    overflow: hidden;
    z-index: 1;
}

    .back-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.1) 80%, transparent);
        transform: translateX(-100%);
        z-index: -1;
    }

    .back-btn:hover::before {
        animation: cloudFlow 2.5s ease-in-out infinite;
    }

    .back-btn:hover {
        transform: translateY(-2px);
        background: radial-gradient(141.42% 141.42% at 100% 0%, #fff9, #fff3), radial-gradient(140.35% 140.35% at 100% 94.74%, #8a8dff, #8a8dff00), radial-gradient(89.94% 89.94% at 18.42% 15.79%, #9b41ff, #9b41ff00), radial-gradient(120% 120% at 50% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 40%);
        box-shadow: 0 4px 20px rgba(138, 141, 255, 0.3), 0 1px #ffffffbf inset;
        color: #322959;
    }

    .back-btn:active {
        transform: translateY(0);
    }

    .back-btn i {
        font-size: 1.2rem;
        transition: transform 0.3s ease;
    }

    .back-btn:hover i {
        transform: translateX(3px);
    }



.validation-error {
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: 5px;
    text-align: right;
    display: block;
}

.footer {
    text-align: center;
    padding: 20px;
    color: #4ca0f9;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    background: radial-gradient(circle at top center, var(--bg-footer-1) 30%, var(--bg-footer-2) 80%);
}

    .footer p {
        --text-color: #41D1FF;
        background: radial-gradient(circle 300px at 30% -180%, var(--text-color) 0%, #ffffff 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: 0 0 4px rgba(255, 255, 255, .1), 0 0 14px rgba(130, 168, 236, .2);
    }

@keyframes rotateGear {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
}

@keyframes gearGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(113, 94, 189, 0.6), inset 0 0 15px rgba(0, 0, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(113, 94, 189, 0.8), inset 0 0 15px rgba(0, 0, 0, 0.3);
    }
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

@keyframes cloudFlow {
    0% {
        transform: translateX(-100%) skewX(-15deg);
    }

    100% {
        transform: translateX(200%) skewX(-15deg);
    }
}

@keyframes fadeInMove {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8) translateX(-20px);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) translateX(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

@keyframes lineGlow {
    0%, 100% {
        stroke-opacity: 0.8;
    }

    50% {
        stroke-opacity: 1;
    }
}

.line-path {
    stroke-width: 1px !important;
    stroke-opacity: 0.8;
    animation: lineGlow 3s ease-in-out infinite;
}

.line-path-1 {
    animation-delay: 0s;
}

.line-path-2 {
    animation-delay: 0.3s;
}

.line-path-3 {
    animation-delay: 0.6s;
}

.line-path-4 {
    animation-delay: 0.9s;
    stroke-opacity: 0.7 !important;
}

.fade-in-move {
    animation: fadeInMove 1.5s ease-out forwards;
}

.fade-out {
    animation: fadeOut 0.5s ease-in forwards;
}

.moving-border {
    position: relative;
    border-radius: 20px;
}

.laser-container {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    pointer-events: none;
    z-index: 1;
}

.laser-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #FF9800;
    border-radius: 50%;
    box-shadow: 0 0 6px #FF9800, 0 0 12px #FF9800, 0 0 18px rgba(255, 152, 0, 0.7);
    animation: moveAroundRoundedBorder 10s ease-in-out infinite, fadeCycle 5s ease-in-out infinite;
    transform: translate(-50%, -50%);
    z-index: 20;
    opacity: 0;
}

.trail-left-1, .trail-left-2, .trail-left-3, .trail-left-4,
.trail-right-1, .trail-right-2, .trail-right-3, .trail-right-4 {
    position: absolute;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    opacity: 0;
}

.trail-left-1 {
    width: 3.5px;
    height: 3.5px;
    background: #41D1FF;
    box-shadow: 0 0 5px #03A9F4, 0 0 10px rgba(3, 169, 244, 0.6);
    filter: blur(0.3px);
    animation: moveAroundRoundedBorder 10s ease-in-out infinite 0.04s, fadeCycle 5s ease-in-out infinite 0.04s;
}

.trail-left-2 {
    width: 3.0px;
    height: 3.0px;
    background: #4CAF50;
    box-shadow: 0 0 4px #4CAF50, 0 0 8px rgba(76, 175, 80, 0.6);
    filter: blur(0.5px);
    animation: moveAroundRoundedBorder 10s ease-in-out infinite 0.08s, fadeCycle 5s ease-in-out infinite 0.08s;
}

.trail-left-3 {
    width: 2.5px;
    height: 2.5px;
    background: #9C27B0;
    box-shadow: 0 0 3px #9C27B0, 0 0 6px rgba(156, 39, 176, 0.6);
    filter: blur(0.7px);
    animation: moveAroundRoundedBorder 10s ease-in-out infinite 0.12s, fadeCycle 5s ease-in-out infinite 0.12s;
}

.trail-left-4 {
    width: 2.0px;
    height: 2.0px;
    background: #FF5252;
    box-shadow: 0 0 2px #FF5252, 0 0 4px rgba(255, 82, 82, 0.6);
    filter: blur(0.9px);
    animation: moveAroundRoundedBorder 10s ease-in-out infinite 0.16s, fadeCycle 5s ease-in-out infinite 0.16s;
}

.trail-right-1 {
    width: 3.5px;
    height: 3.5px;
    background: #41D1FF;
    box-shadow: 0 0 5px #03A9F4, 0 0 10px rgba(3, 169, 244, 0.6);
    filter: blur(0.3px);
    animation: moveAroundRoundedBorder 10s ease-in-out infinite -0.04s, fadeCycle 5s ease-in-out infinite -0.04s;
}

.trail-right-2 {
    width: 3.0px;
    height: 3.0px;
    background: #4CAF50;
    box-shadow: 0 0 4px #4CAF50, 0 0 8px rgba(76, 175, 80, 0.6);
    filter: blur(0.5px);
    animation: moveAroundRoundedBorder 10s ease-in-out infinite -0.08s, fadeCycle 5s ease-in-out infinite -0.08s;
}

.trail-right-3 {
    width: 2.5px;
    height: 2.5px;
    background: #9C27B0;
    box-shadow: 0 0 3px #9C27B0, 0 0 6px rgba(156, 39, 176, 0.6);
    filter: blur(0.7px);
    animation: moveAroundRoundedBorder 10s ease-in-out infinite -0.12s, fadeCycle 5s ease-in-out infinite -0.12s;
}

.trail-right-4 {
    width: 2.0px;
    height: 2.0px;
    background: #FF5252;
    box-shadow: 0 0 2px #FF5252, 0 0 4px rgba(255, 82, 82, 0.6);
    filter: blur(0.9px);
    animation: moveAroundRoundedBorder 10s ease-in-out infinite -0.16s, fadeCycle 5s ease-in-out infinite -0.16s;
}

@keyframes moveAroundRoundedBorder {
    0% {
        top: 0%;
        left: 20px;
    }

    12.5% {
        top: 0%;
        left: calc(100% - 20px);
    }

    25% {
        top: 20px;
        left: 100%;
    }

    37.5% {
        top: calc(100% - 20px);
        left: 100%;
    }

    50% {
        top: 100%;
        left: calc(100% - 20px);
    }

    62.5% {
        top: 100%;
        left: 20px;
    }

    75% {
        top: calc(100% - 20px);
        left: 0%;
    }

    87.5% {
        top: 20px;
        left: 0%;
    }

    100% {
        top: 0%;
        left: 20px;
    }
}

@keyframes fadeCycle {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    10% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    15% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.05);
    }

    85% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(0.95);
    }

    90% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
}

#movingCircle1 .circle-main {
    background: var(--circle-1-color) !important;
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.4), 0 0 20px var(--circle-1-color) !important;
}

#movingCircle2 .circle-main {
    background: var(--circle-2-color) !important;
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.4), 0 0 20px var(--circle-2-color) !important;
}

#movingCircle3 .circle-main {
    background: var(--circle-3-color) !important;
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.4), 0 0 20px var(--circle-3-color) !important;
}

#movingCircle4 .circle-main {
    background: var(--circle-4-color) !important;
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.4), 0 0 20px var(--circle-4-color) !important;
}

#movingCircle1 .circle-glow {
    background: var(--circle-1-color) !important;
}

#movingCircle2 .circle-glow {
    background: var(--circle-2-color) !important;
}

#movingCircle3 .circle-glow {
    background: var(--circle-3-color) !important;
}

#movingCircle4 .circle-glow {
    background: var(--circle-4-color) !important;
}

#movingCircle1 .circle-label {
    color: var(--circle-1-color) !important;
}

#movingCircle2 .circle-label {
    color: var(--circle-2-color) !important;
}

#movingCircle3 .circle-label {
    color: var(--circle-3-color) !important;
}

#movingCircle4 .circle-label {
    color: var(--circle-4-color) !important;
}

@media (max-width: 1200px) {
    .animation-section {
        height: 40vh;
    }

    .form-section {
        margin-top: -80px;
    }

    .gear-outer {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 992px) {
    .animation-section {
        height: 35vh;
    }

    .form-section {
        margin-top: -60px;
        padding: 15px;
    }

    .login-container {
        max-width: 450px;
    }

    .gear-outer {
        width: 120px;
        height: 120px;
    }

    .center-circle {
        width: 100px;
        height: 100px;
    }

    .center-image {
        width: 85px;
        height: 85px;
    }
}

@media (max-width: 768px) {
    .animation-section {
        height: 30vh;
    }

    .form-section {
        margin-top: -50px;
    }

    .login-container {
        max-width: 400px;
    }

    .form-header h1 {
        font-size: 1.5rem;
    }

    .header-controls {
        top: 15px;
        left: 15px;
    }

    .gear-outer {
        width: 45vw;
        height: 45vw;
        max-width: 180px;
        max-height: 180px;
        min-width: 120px;
        min-height: 120px;
    }

    .center-circle {
        width: 30vw;
        height: 30vw;
        max-width: 120px;
        max-height: 120px;
        min-width: 80px;
        min-height: 80px;
    }

    .center-image {
        width: 25vw;
        height: 25vw;
        max-width: 100px;
        max-height: 100px;
        min-width: 70px;
        min-height: 70px;
        background-size: 80%;
    }
}

@media (max-width: 576px) {
    .animation-section {
        height: 25vh;
    }

    .form-section {
        margin-top: -40px;
        padding: 10px;
    }

    .login-container {
        max-width: 100%;
        margin: 0 10px;
    }

    .form-header h1 {
        font-size: 1.3rem;
    }

    .form-input {
        /*  padding: 12px 14px 12px 40px;*/
    }

    .login-btn, .back-btn {
        padding: 14px;
        font-size: 1rem;
    }

    .theme-toggle {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .gear-outer {
        width: 90px;
        height: 90px;
    }

    .center-circle {
        width: 80px;
        height: 80px;
    }

    .center-image {
        width: 70px;
        height: 70px;
    }

    .form-options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .captcha-input-group {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .animation-section {
        height: 22vh;
    }

    .form-section {
        margin-top: -30px;
    }

    .gear-outer {
        width: 80px;
        height: 80px;
    }

    .center-circle {
        width: 70px;
        height: 70px;
    }

    .center-image {
        width: 60px;
        height: 60px;
    }
}

@media (max-height: 700px) {
    .animation-section {
        height: 35vh;
    }

    .form-section {
        padding: 15px;
        margin-top: -80px;
    }
}

@media (max-height: 600px) {
    .animation-section {
        height: 30vh;
    }

    .form-section {
        margin-top: -60px;
    }
}

@media (max-width: 768px) {
    .gear-outer {
        width: 35vw !important;
        height: 35vw !important;
        max-width: 150px !important;
        max-height: 150px !important;
        min-width: 100px !important;
        min-height: 100px !important;
    }

    .gear-tooth {
        transform-origin: center !important;
    }

    .tooth-small {
        width: 30px !important;
        height: 20px !important;
    }

    .tooth-large {
        width: 40px !important;
        height: 30px !important;
    }

    .center-circle {
        width: 22vw !important;
        height: 22vw !important;
        max-width: 100px !important;
        max-height: 100px !important;
    }

    .center-image {
        width: 18vw !important;
        height: 18vw !important;
        max-width: 80px !important;
        max-height: 80px !important;
    }
}

@media (max-width: 576px) {
    .gear-outer {
        width: 40vw !important;
        height: 40vw !important;
        max-width: 120px !important;
        max-height: 120px !important;
        min-width: 80px !important;
        min-height: 80px !important;
    }

    .tooth-small {
        width: 29px !important;
        height: 40px !important;
        clip-path: polygon(0% 0%, 60% 30%, 60% 70%, 0% 100%);
        box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3), inset 0 0 8px rgba(255, 255, 255, 0.1);
    }

    .tooth-large {
        width: 37px !important;
        height: 29px !important;
        clip-path: polygon(0% 0%, 40% 20%, 40% 80%, 0% 100%);
        box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3), inset 0 0 8px rgba(255, 255, 255, 0.1);
    }

    .center-circle {
        width: 25vw !important;
        height: 25vw !important;
        max-width: 70px !important;
        max-height: 70px !important;
    }

    .center-image {
        width: 20vw !important;
        height: 20vw !important;
        max-width: 60px !important;
        max-height: 60px !important;
        background-size: 70% !important;
    }
}

.gear-outer {
    position: absolute;
    width: 40vw;
    height: 40vw;
    max-width: 200px;
    max-height: 200px;
    min-width: 100px;
    min-height: 100px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 14;
    animation: rotateGear 20s linear infinite;
    will-change: transform;
    transform-style: preserve-3d;
}

.gear-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: 1;
    will-change: transform;
}

@media (max-width: 768px) {
    .gear-outer {
        width: 30vw !important;
        height: 30vw !important;
    }

    .gear-ring {
        width: 100% !important;
        height: 100% !important;
    }
}



.message-container {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    position: relative;
    z-index: 100;
}

    .message-container.show {
        display: block !important;
        opacity: 1;
        transform: translateY(0);
    }

.message-success {
    background-color: rgba(76, 175, 80, 0.15) !important;
    color: #4CAF50 !important;
    border: 1px solid #4CAF50 !important;
}

.message-error {
    background-color: rgba(255, 82, 82, 0.15) !important;
    color: #FF5252 !important;
    border: 1px solid #FF5252 !important;
}

.message-warning {
    background-color: rgba(255, 193, 7, 0.15) !important;
    color: #ffc107 !important;
    border: 1px solid #ffc107 !important;
}
/* انیمیشن برای نمایش پیغام */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.message-container.show {
    animation: fadeInDown 0.5s ease-out;
}
/* دکمه بستن پیغام */
.message-container .close-btn {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

    .message-container .close-btn:hover {
        opacity: 1;
    }
/* reset form*/
/* استایل مخصوص صفحه بازنشانی رمز */
.reset-password-page {
    min-height: 100vh;
    background: linear-gradient(135deg, color-mix(in srgb, var(--bg-primary) 70%, black 30%) 0%, color-mix(in srgb, var(--bg-secondary) 30%, black 70%) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}
    /* افکت پس‌زمینه */
    .reset-password-page::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(113, 94, 189, 0.1) 0%, rgba(79, 31, 128, 0.05) 40%, transparent 70%);
        animation: float 15s ease-in-out infinite;
        z-index: 0;
    }

.reset-password-container {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
}

    .reset-password-container .login-container {
        background: var(--bs-form);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        animation: slideInUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

.reset-password-header {
    text-align: center;
    margin-bottom: 30px;
}

    .reset-password-header h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
        color: var(--text-secondary);
        position: relative;
        display: inline-block;
    }

        .reset-password-header h1::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
            border-radius: 2px;
        }

    .reset-password-header p {
        color: var(--text-secondary);
        font-size: 0.95rem;
        margin-top: 15px;
    }

.reset-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: block;
    text-align: center;
    animation: pulseform 2s infinite;
}
/* انیمیشن‌ها */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
    }

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

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, 30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 40px) rotate(240deg);
    }
}

@keyframes pulseform {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}
/* ریسپانسیو */
@media (max-width: 576px) {
    .reset-password-container {
        max-width: 95%;
    }

    .reset-password-header h1 {
        font-size: 1.5rem;
    }

    .reset-icon {
        font-size: 2rem;
    }
}
/* دکمه اضافی برای بازگشت */
.back-to-login {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

    .back-to-login a {
        color: var(--accent-color);
        text-decoration: none;
        font-size: 0.9rem;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: all 0.3s ease;
    }

        .back-to-login a:hover {
            color: var(--primary-color);
            gap: 12px;
        }
/* استایل فیلدهای بدون آیکون */
.form-input-noicon {
    width: 100%;
    padding: 10px 14px !important;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary) !important;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
    text-align: center;
}

    .form-input-noicon:focus {
        outline: none;
        border-color: var(--accent-color);
        box-shadow: 0 0 0 3px rgba(3, 169, 244, 0.1);
    }

    .form-input-noicon::placeholder {
        color: var(--text-secondary);
    }
/* Utility Classes - مشابه بوت‌استرپ */
.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.d-none {
    display: none !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.justify-content-center {
    justify-content: center !important;
}

.gap-1 {
    gap: 0.25rem !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.gap-3 {
    gap: 1rem !important;
}

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.text-left {
    text-align: left !important;
}

.fw-normal {
    font-weight: normal !important;
}

.fw-medium {
    font-weight: 500 !important;
}

.fw-bold {
    font-weight: bold !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-info {
    color: var(--accent-color) !important;
}

.small {
    font-size: 0.875rem !important;
}

.fs-6 {
    font-size: 1rem !important;
}

.fs-5 {
    font-size: 1.25rem !important;
}

.cursor-pointer {
    cursor: pointer !important;
}
/* کلاس‌های اضافی */
.letter-spacing-1 {
    letter-spacing: 1px !important;
}

.letter-spacing-2 {
    letter-spacing: 2px !important;
}

.me-1 {
    margin-left: 0.25rem !important;
}

.me-2 {
    margin-left: 0.5rem !important;
}

.me-3 {
    margin-left: 1rem !important;
}

.ms-1 {
    margin-right: 0.25rem !important;
}

.ms-2 {
    margin-right: 0.5rem !important;
}

.ms-3 {
    margin-right: 1rem !important;
}

.rounded {
    border-radius: 0.375rem !important;
}

.rounded-circle {
    border-radius: 50% !important;
}

.border {
    border: 1px solid var(--border-color) !important;
}

.border-0 {
    border: none !important;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-icon:hover {
        background: var(--accent-color);
        color: white;
        border-color: var(--accent-color);
    }

.btn-secondary {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-secondary:hover {
        background: var(--secondary-color);
        color: white;
    }
/* استایل هدر با لوگو */
/*.header-with-logo {
    position: fixed;
    top: 69px;
    right: 99px;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    z-index: 1000;
    background: transparent;
}
 

.logo-img {
    height: 80px;  
    width: auto;
    max-width: 180px;  
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.3));
}

 
@media (max-width: 768px) {
    .logo-img {
        height: 65px;
        max-width: 150px;
    }
}

@media (max-width: 576px) {
    .header-with-logo {
        top: 20px;
        right: 25px;
    }

    .header-with-logo {
        top: 4px;
        right: 75px;
    }
}*/

.header-with-logo {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    text-align: center; /* این خط اضافه شد */
    z-index: 1000;
    background: transparent;
    padding: 15px 0;
}

.body-logo {
    display: inline-block; /* این خط اضافه شد */
    margin: 0 auto;
}

.logo-img {
    height: 70px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.3));
    display: block; /* این خط اضافه شد */
    margin: 0 auto; /* این خط اضافه شد */
}

.header-controls {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}
/* رسپانسیو */
@media (max-width: 768px) {
    .logo-img {
        height: 60px;
        max-width: 180px;
    }
}

@media (max-width: 576px) {
    .header-with-logo {
        top: 15px;
    }

    .logo-img {
        height: 50px;
        max-width: 160px;
    }

    .header-controls {
        left: 15px;
    }
}
/*bg form*/

/*.form-section {
    background: url('/themes/default/images/img-login.png') no-repeat center 40vh;
    background-size: contain;
    background-attachment: fixed;
    min-height: 300px;
}*/

.form-section {
    background: url('/themes/default/images/img-login.png') no-repeat right 8.5vh;
    background-size: contain;
    background-attachment: scroll;
    min-height: 300px;
    max-height: 570px;
}
@media (max-width:1024px) {
    .form-section {
        background: none;
    }
}
@media (max-width: 768px) {
    .form-section {
        background: none;
    }
}

@media (max-width: 576px) {
    .form-section {
        background: none;
    }
}
 
@media (max-width: 768px) {
    .captcha-container .d-flex.align-items-center.gap-3 {
        flex-direction: column;
        align-items: stretch;
        gap: 10px !important;
    }

    .captcha-container .form-input {
        font-size: 14px;
        padding: 12px;
        width: 100%;
    }

    .captcha-container .d-flex.align-items-center.gap-2 {
        justify-content: center;
    }

    .captcha-image {
        height: 45px;
        width: 120px;
    }
}

@media (max-width: 576px) {
    .captcha-container .d-flex.align-items-center.gap-3 {
        gap: 8px !important;
    }

    .captcha-container .form-input {
        font-size: 13px;
        padding: 10px;
    }

    .captcha-image {
        height: 40px;
        width: 100px;
    }

    .btn-icon {
        width: 36px;
        height: 36px;
    }
}
