* {
    font-family: var(--primary-font, 'Tahoma', 'Arial', sans-serif) !important;
}

body {
    font-family: var(--primary-font, 'Tahoma', 'Arial', sans-serif) !important;
    direction: rtl;
    text-align: right;
}

.auth-only-layout {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.auth-only-layout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.2) 0%, transparent 50%);
    animation: backgroundMove 20s ease-in-out infinite;
}

@keyframes backgroundMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.auth-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    margin: 1rem;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideInUp 0.6s ease-out;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    z-index: 1;
}

.auth-container .form-group {
    margin-bottom: 2rem;
    position: relative;
}

.auth-container .form-control {
    border-radius: 12px;
    border: 2px solid #e8ecf4;
    padding: 16px 40px 16px 50px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.auth-container .form-control:focus {
    border-color: #667eea;
    box-shadow:
        0 0 0 0.2rem rgba(102, 126, 234, 0.25),
        0 5px 20px rgba(102, 126, 234, 0.15);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.auth-container .form-control::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.auth-container .input-group-text {
    background: transparent;
    border: none;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    color: #667eea;
    font-size: 18px;
    padding: 0;
}

.auth-container .form-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-container .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.auth-container .btn-primary::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: left 0.5s;
}

.auth-container .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.auth-container .btn-primary:hover::before {
    left: 100%;
}

.auth-container .btn-primary:active {
    transform: translateY(-1px);
}

.auth-container .alert {
    border-radius: 12px;
    border: none;
    padding: 16px 20px;
    margin-bottom: 20px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.auth-container .alert-danger {
    background: rgba(255, 107, 107, 0.1);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.3);
}

.auth-container .alert-info {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-color: rgba(102, 126, 234, 0.3);
}

.auth-container .alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    border-color: rgba(255, 193, 7, 0.3);
}

.auth-container a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-container a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.auth-card,
.card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.auth-card .card-body,
.card-body,
.auth-card .card-header,
.card-header,
.auth-card .card-footer,
.card-footer {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.col-xl-6,
.col-lg-8 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

.py-5 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

@media (max-width: 576px) {
    .auth-container {
        margin: 0.5rem;
        padding: 2rem;
    }

    .auth-wrapper {
        padding: 0.5rem;
    }

    .auth-container .form-control {
        padding: 14px 18px 14px 45px;
        font-size: 14px;
    }

    .auth-container .btn-primary {
        padding: 14px 20px;
        font-size: 15px;
    }
}

.input-password-toggle {
    left: 0 !important;
    right: auto !important;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
}

.navigation-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.nav-arrow {
    display: inline-flex;
    align-items: center;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    gap: 8px;
}

.logo-img {
    height: 60px;
}

