@import url('font.css');

body { 
    font-family: YekanBakh; 
    direction: rtl; 
    text-align: right; 
    background: #FFFEF9; 
    margin: 0; 
    padding: 0;
    line-height: 1.6;
}

.content {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.login-box {
    display: flex
;
    width: 100%;
    max-width: 1400px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    min-height: 600px;
}

.image-section {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex
;
    justify-content: center;
    align-items: center;
}
.image-section img {
    width: 100%;
    object-fit: cover;
    border-radius: 0 20px 20px 0;
    transform: scale(1.1);
    margin-right: -20px;
}

.form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
}

.container { 
    max-width: 420px; 
    width: 100%;
    background: white; 
    padding: 40px 30px; 
    border-radius: 12px; 
}

h2 {
    text-align: center; 
    margin-top: 0; 
    margin-bottom: 30px;
    color: #353535 !important; 
    font-weight: 600;
    font-size: 24px;
}

.form-group { 
    margin-bottom: 24px; 
    position:relative;
}

label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 600; 
    color: #353535;
    font-size: 14px;
}

input[type="text"], 
input[type="email"], 
input[type="password"] { 
    width: 100%; 
    padding: 14px 16px; 
    box-sizing: border-box; 
    border: 1px solid #e0e0e0; 
    border-radius: 8px; 
    font-size: 15px; 
    background: #fafafa;
    transition: all 0.3s ease;
    color: #353535;
    font-family: YekanBakh;
}

input[type="text"]:focus, 
input[type="email"]:focus, 
input[type="password"]:focus {
    outline: none;
    border-color: #1E6DF3;
    background: white;
    box-shadow: 0 0 0 3px rgba(30, 109, 243, 0.1);
}

button { 
    background: #1E6DF3; 
    color: white; 
    padding: 14px 20px; 
    border: none; 
    border-radius: 8px; 
    cursor: pointer; 
    font-size: 16px; 
    font-weight: 600;
    width: 100%; 
    transition: all 0.3s ease;
    font-family: YekanBakh;
}

.send-code-btn {
    background: #6c757d;
    font-size: 14px;
    padding: 12px;
    position: absolute;
    width: auto;
    left: 3px;
    bottom: 3px;
    font-weight: 400;
}

.send-code-btn:hover { 
    background: #5a6268; 
    transform: none;
}

.send-code-btn:disabled {
    background: #a0a0a0;
    cursor: not-allowed;
    transform: none;
}

.error { 
    color: #d63638; 
    background: #ffebeb; 
    padding: 12px 16px; 
    border-radius: 8px; 
    margin-bottom: 20px; 
    border: 1px solid #ffcdd2;
    font-size: 14px;
}

.success { 
    color: #2e7d32; 
    background: #edf7ed; 
    padding: 12px 16px; 
    border-radius: 8px; 
    margin-bottom: 20px; 
    border: 1px solid #c8e6c9;
    font-size: 14px;
}

.links { 
    text-align: center; 
    margin-top: 25px; 
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.links a { 
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    background: #f8f8f8;
    color: #5c5c5c;
    margin: 0px;
    border: 1px solid #eeeeee;
    text-decoration: none; 
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
}


.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    background: none;
    border: none;
    font-size: 18px;
    padding: 5px;
    color: #757575;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
}

.toggle-password svg {
    width: 40px;
    height: 40px;
    fill: currentColor;
}

.password-strength {
    height: 4px;
    margin-top: 8px;
    border-radius: 2px;
    transition: all 0.3s ease;
    width: 0%;
    background: #e0e0e0;
}

.strength-weak { 
    background: #ff4757; 
    width: 25% !important; 
}

.strength-fair { 
    background: #ffa502; 
    width: 50% !important; 
}

.strength-good { 
    background: #2ed573; 
    width: 75% !important; 
}

.strength-strong { 
    background: #1e90ff; 
    width: 100% !important; 
}

/* رسپانسیو برای تبلت */
@media (max-width: 768px) {
    .login-box {
        flex-direction: column;
        max-width: 500px;
        min-height: auto;
    }
    
    .image-section {
        flex: none;
    }
    
    .image-section img {
        border-radius: 20px 20px 0 0;
        margin-right: 0;
        margin-bottom: -20px;
        transform: scale(1.05);
        width:250px;
    }
    
    .form-section {
        padding: 30px 20px;
    }
    
    .container {
        padding: 30px 20px;
    }
}

/* رسپانسیو برای موبایل */
@media (max-width: 480px) {
    .content {
        padding: 10px;
    }
    
    .login-box {
        border-radius: 15px;
    }
    
    .image-section {
     }
    
    .form-section {
        padding: 20px 15px;
    }
    
    .container {
        padding: 20px 15px;
    }
    
    h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .links {
        flex-direction: column;
        gap: 8px;
    }
    
    .links a {
        padding: 8px;
    }
}