@font-face {
    font-family: IranSans;
    src: url(../font/IRANSans.ttf);
}
:root {
    --primary-color: #4CAF50;
    --primary-light: #E8F5E9;
    --primary-dark: #bd1fd5;
    --accent-color: #8BC34A;
    --text-dark: #263238;
    --text-light: #78909C;
    --white: #FFFFFF;
    --gray-light: #F5F7FA;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: IranSans;
}
body {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--gray-light) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    color: var(--text-dark);
}
body.loading {
    overflow: hidden;
}
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-light);
    opacity: .8;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    z-index: 999999;
}
#loader.hidden {
    opacity: 0;
    visibility: hidden;
}
.spinner {
    width: 42px;
    height: 42px;
    border: 4px solid transparent;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.container {
    display: flex;
    width: 100%;
    max-width: 1100px;
    min-height: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--white);
}
.login-side {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--white);
}
.graphic-side {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}
.logo {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
}
.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    color: var(--primary-color);
    font-size: 24px;
}
.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}
.welcome-text {
    margin-bottom: 32px;
}
.welcome-text h1 {
    font-size: 28px;
    color: var(--text-dark);
}
.welcome-text p {
    color: var(--text-light);
    font-size: 16px;
}
.form-group {
    margin-bottom: 24px;
    position: relative;
}
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 14px;
    font-family: IranSans;
}
.input-with-icon {
    position: relative;
}
.form-control {
    width: 100%;
    padding: 16px;
    border: 1.5px solid #E0E0E0;
    border-radius: 12px;
    font-size: 16px;
    font-family: IranSans;
    transition: var(--transition);
    background: var(--white);
}
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    outline: none;
}
.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}
.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
}
.remember-me {
    display: flex;
    align-items: center;
}
.remember-me input {
    margin-left: 8px;
}
.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}
.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}
.btn-login {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 12px;
    padding: 16px;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    font-family: IranSans;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}
.btn-login:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    transform: translateY(-2px);
}
.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: var(--text-light);
    font-size: 14px;
}
.divider::before, .divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #E0E0E0;
}
.divider::before {
    margin-left: 15px;
}
.divider::after {
    margin-right: 15px;
}
.graphic-content {
    text-align: center;
    color: var(--white);
    z-index: 2;
}
.graphic-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
}
.graphic-content p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 350px;
}
.features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.feature {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}
.feature i {
    margin-left: 15px;
    font-size: 20px;
}
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    z-index: 1;
}
.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}
.element-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    right: 15%;
    animation: float 15s infinite linear;
}

.element-2 {
    width: 120px;
    height: 120px;
    bottom: 10%;
    left: 10%;
    animation: float 20s infinite linear reverse;
}
.element-3 {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 20%;
    animation: float 12s infinite linear;
}
@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(20px, 20px) rotate(180deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        max-width: 450px;
    }
    
    .graphic-side {
        display: none;
    }
    
    .login-side {
        padding: 40px 30px;
    }
}
@media (max-width: 425px){
    body{
        padding: 0;
    }
    .container{
        transform: scale(.85);
        min-height: 400px;
    }
    .login-side {
        padding: 48px 24px;
    }
    .logo {
        margin-bottom: 16px;
    }
    .welcome-text h1{
        font-size: 20px;
    }
    .welcome-text {
        margin-bottom: 16px;
    }
    .welcome-text p {
        font-size: 12px;
    }
    .form-control {
        padding: 12px;
        font-size: 12px;
    }
    .form-group {
        margin-bottom: 16px;
    }
    .remember-me label{
        font-size: 12px;
    }
    .forgot-password{
        font-size: 12px;
    }
}
.toggle-password {
    cursor: pointer;
    left: 10px;
    right: auto;
}