@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #004d99;
    /* AADL Blue */
    --secondary-color: #0080ff;
    /* Lighter Blue */
    --accent-color: #ffcc00;
    /* Gold/Yellow accent */
    --glass-bg: rgba(255, 255, 255, 0.75);
    /* More transparent for background visibility */
    --glass-border: rgba(255, 255, 255, 0.4);
    --text-color: #333;
    --text-light: #555;
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background-image: url('../assets/aadl_hq.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    direction: rtl;
    position: relative;
}

/* Dark overlay to ensure text readability */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 20, 50, 0.4);
    /* Dark blue overlay */
    z-index: 0;
}

.container {
    position: relative;
    /* Above overlay */
    z-index: 1;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 800px;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(0, 77, 153, 0.1);
    padding-bottom: 20px;
}

header h1 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 5px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header p {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
}

.aadl-logo {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    display: inline-block;
    font-weight: 900;
    letter-spacing: 2px;
    background: -webkit-linear-gradient(45deg, #004d99, #0080ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

label {
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
}

input,
select {
    padding: 12px 15px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

input:focus,
select:focus {
    border-color: var(--secondary-color);
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 15px rgba(0, 128, 255, 0.2);
}

button {
    grid-column: span 2;
    padding: 16px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(0, 77, 153, 0.4);
}

button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 77, 153, 0.5);
}

button:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    form {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    button {
        grid-column: span 1;
    }

    .container {
        padding: 25px;
        width: 95%;
    }

    header h1 {
        font-size: 1.6rem;
    }

    .aadl-logo {
        font-size: 2.5rem;
    }
}