/* Fonts */
@font-face {
    font-family: 'BHoma';
    src: url('/static/fonts/BHoma.ttf') format('truetype');
}

@font-face {
    font-family: 'BYekan';
    src: url('/static/fonts/BYekan.ttf') format('truetype');
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #FF8C00; /* نارنجی براق تاکسی */
    font-family: 'BYekan', Tahoma, Arial, sans-serif;
}

.login-container {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 400px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.logo img {
    width: 100px;
    margin-bottom: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.logo img:hover {
    box-shadow: 0 0 10px 5px rgba(0, 255, 0, 0.7);
    transform: scale(1.1);
}

h1 {
    margin-bottom: 15px;
    color: #000; /* مشکی */
    font-size: 1.5rem;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

button {
    margin: 10px 0;
    padding: 10px;
    border: 2px solid #555; /* تغییر بوردر به دودی */
    border-radius: 5px;
    background-color: #444; /* دودی ملایم */
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    font-family: 'BHoma', Tahoma, Arial, sans-serif;
    width: 200px;
    transition: background 0.3s ease;
}

button:hover {
    background-color: #555;
}

/* تغییر رنگ دکمه بر اساس موفقیت یا خطا */
button.success {
    background-color: #28a745 !important; /* سبز در موفقیت */
    border-color: #218838;
}

button.error {
    background-color: #dc3545 !important; /* قرمز در خطا */
    border-color: #c82333;
}

.remember-me-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    margin: 10px 0;
}

.remember-me-container input {
    margin-left: 5px;
}

.remember-me-container label {
    font-size: 0.9em;
    color: #333;
    font-family: 'BHoma', Tahoma, Arial, sans-serif;
}

a {
    color: #00BCD4; /* فیروزه‌ای */
    text-decoration: none;
    font-size: 0.9em;
}

a:hover {
    text-decoration: underline;
}

hr {
    margin: 20px 0;
    border: none;
    border-top: 1px solid #ccc;
}

/* استایل برای فیلدهای ورود */
input[type="text"],
input[type="password"] {
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    direction: rtl;
    text-align: right;
    font-family: 'BHoma', Tahoma, Arial, sans-serif;
    box-sizing: border-box;
}

/* فاصله برای کلمه کاربری */
input[type="text"] {
    padding-left: 30px;
}

/* فاصله برای پسورد + آیکون چشم */
input[type="password"] {
    padding-left: 30px;
    padding-right: 40px;
}

/* تغییر استایل بعد از تایپ */
input[type="text"]:not(:placeholder-shown),
input[type="password"]:not(:placeholder-shown) {
    direction: ltr;
    text-align: left;
}

/* استایل آیکون چشم */
.password-container {
    position: relative;
    width: 100%;
}

.password-container input {
    width: 100%;
    padding-left: 30px;
    padding-right: 40px;
    box-sizing: border-box;
}

.password-container i {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: #aaa;
    cursor: pointer;
}