/* Base RTL setup for the entire document or a specific container */
body {
    font-family: 'Cairo', sans-serif;
}

body[dir="rtl"] .login-container,
.login-container[dir="rtl"] {
    direction: rtl;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('img/login-back.jpg') no-repeat center center/cover;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at 50% 50%, rgba(106, 166, 240, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.login-card {
    padding: 48px;
    border-radius: 24px;

    width: 100%;
    max-width: 480px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
    animation: slideUp 0.5s ease-out forwards;
    background: rgba(255, 255, 255, 0.177);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(17.6px);
    -webkit-backdrop-filter: blur(17.6px);
    border: 1px solid rgba(255, 255, 255, 0.74);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card .brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

.brand img {
    width: 120px;
    height: 120px;
}

.login-card .logo {
    width: 100px;
    height: 100px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    /* color: #fff; */
    font-size: 32px;
    /* box-shadow: 0 12px 24px -6px rgba(96, 165, 250, 0.3); */
    margin-bottom: 8px;
}

.login-card h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: #1e293b;
    text-align: center;
    letter-spacing: -0.5px;
}

.login-card .sub {
    color: #1fe8d7;
    font-size: 15px;
    text-align: center;
    font-weight: 500;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #030404;
    margin-bottom: 8px;
    font-weight: 600;
    text-align: start;
}

.login-card input[type=text],
.login-card input[type=email],
.login-card input[type=password] {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    font-size: 15px;
    transition: all 0.2s ease;
    color: #1e293b;
    font-weight: 500;
}

.login-card input:focus {
    outline: none;
    border-color: var(--accent, #6aaff0);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(106, 166, 240, 0.1);
}

.login-card button.btn {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 0;
    background: linear-gradient(135deg, var(--accent, #6aaff0), #116cfd);
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-top: 12px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.login-card button.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

.login-card button.btn:active {
    transform: translateY(0);
}

.form-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
}

.form-footer p {
    color: #94a3b8;
    font-size: 13px;
    margin: 0;
    font-weight: 500;
}

/* Optional: Define custom properties for easier theming */
:root {
    --background: #f8faff;
    --card: #ffffff;
    --border: #e0e0e0;
    --text-primary: #0f172a;
    --muted: #6b7280;
    --accent: #6aaff0;
    --accent-hover: #5a9ae8;
    --accent-shadow: rgba(106, 166, 240, 0.2);
    --accent-2: #f0b86a;
    /* Example secondary accent color */
    --accent-2-hover: #e0a85a;
    --input-border: #e6eefc;
    --input-background: #fff;
}