:root {
    --primary-color: #06adeb;
    --primary-light: #4dcfff;
    --primary-dark: #007bb8;
    --text-color: #333333;
    --bg-color: #ffffff;
    --input-bg: #f8f9fa;
    --input-border: #e9ecef;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    animation: fadeIn 0.8s ease-out;
}

/* Subtle Background Graphics */
.bg-graphic {
    position: absolute;
    z-index: -1;
    opacity: 0.05;
}

.graphic-1 {
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    border-radius: 50%;
}

.graphic-2 {
    bottom: -10%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-dark) 0%, transparent 70%);
    border-radius: 50%;
}

.mesh-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--primary-color) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.03;
    z-index: -1;
}

/* Login Card */
.login-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-color), var(--primary-dark));
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typography */
.login-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary-dark);
    text-align: center;
    position: relative;
}

/* Form Elements */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 15px 15px 15px 20px;
    border: 2px solid var(--input-border);
    border-radius: 12px;
    background-color: var(--input-bg);
    transition: all 0.3s;
    font-size: 1rem;
    height: auto;
}

.form-control:focus {
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(6, 173, 235, 0.1);
    outline: none;
}

.form-label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    transition: 0.3s ease all;
    background-color: transparent;
    padding: 0 5px;
    margin: 0;
}

[dir="rtl"] .form-label {
    left: auto;
    right: 20px;
}

.form-control:focus + .form-label,
.form-control:not(:placeholder-shown) + .form-label {
    top: 0;
    transform: translateY(-50%) scale(0.9);
    background-color: #fff;
    color: var(--primary-color);
    font-weight: 600;
}

.btn-login {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(6, 173, 235, 0.3);
    margin-top: 1rem;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 173, 235, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.invalid-feedback {
    display: block;
    margin-top: 5px;
    font-size: 0.875rem;
    color: #dc3545;
    padding-left: 10px;
}

/* Language Switcher */
.lang-switcher-sm {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 5px;
    z-index: 10;
}

[dir="rtl"] .lang-switcher-sm {
    right: auto;
    left: 20px;
}

.lang-link {
    color: #999;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.3s;
}

.lang-link:hover, .lang-link.active {
    background-color: rgba(6, 173, 235, 0.1);
    color: var(--primary-color);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
