:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --background-start: #1a2a6c;
    --background-end: #b21f1f;
    --card-background: rgba(255, 255, 255, 0.1);
    --card-border: rgba(255, 255, 255, 0.2);
    --text-color: #f8f9fa;
    --input-background: rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Tajawal', sans-serif;
    background: linear-gradient(135deg, var(--background-start), var(--background-end));
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: var(--text-color);
    overflow: hidden;
    padding: 2rem;
}

.background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-shapes div {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 20s infinite ease-in-out;
}

.background-shapes .shape1 { width: 200px; height: 200px; top: 10%; left: 15%; animation-duration: 25s; }
.background-shapes .shape2 { width: 100px; height: 100px; top: 70%; left: 80%; animation-duration: 18s; }
.background-shapes .shape3 { width: 150px; height: 150px; top: 40%; left: 5%; animation-duration: 22s; }
.background-shapes .shape4 { width: 50px; height: 50px; top: 85%; left: 40%; animation-duration: 30s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

.main-container {
    display: flex;
    background: var(--card-background);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    width: 100%;
    max-width: 900px;
    min-height: 600px;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

.welcome-section {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.welcome-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.welcome-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.welcome-section ul {
    list-style: none;
    padding: 0;
}

.welcome-section ul li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.welcome-section ul li i {
    color: #28a745;
    margin-left: 10px;
    font-size: 1.2rem;
}

.login-container {
    flex: 1;
    padding: 3rem;
    background: rgba(0,0,0,0.2);
    animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        min-height: auto;
    }
    .welcome-section {
        display: none; /* Hide on mobile for a simpler view */
    }
    .login-container {
        border-radius: 20px;
    }
}

.login-container-inner {
    background: var(--card-background);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo .icon-wrapper {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.login-logo i {
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.login-logo h2 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 2rem;
    color: #fff;
}

.login-logo .text-muted,
.login-container .text-muted.small {
    color: var(--text-color) !important;
    opacity: 0.8;
}

.form-label {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-control {
    background: var(--input-background);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
    color: #fff;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    border-radius: 10px;
    padding: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #f8d7da;
    border-radius: 10px;
}

.alert-danger ul {
    padding-right: 1.5rem;
}
