/* --- Variable Definitions --- */
:root {
    --bg-color: #1d1e21;
    --accent-color: #29cba2;
    --text-color: #f0f0f0;
    --input-bg: #2a2c30;
    --border-color: #444;
    --font-title: 'Oswald', sans-serif;
    --font-text: 'Poppins', sans-serif;
}

/* --- General & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

/* --- MOBILE-FIRST STYLES (Default for all devices) --- */
body {
    font-family: var(--font-text);
    /* UPDATED FILENAME */
    background-image: url('../assets/login-back.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.main-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.content-box {
    background-color: rgba(29, 30, 33, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.logo {
    max-width: 380px;
    height: auto;
    margin-bottom: 40px;
}

/* --- Tiles --- */
.tiles-container {
    display: flex;
    gap: 25px;
}

.tile {
    background-color: var(--accent-color);
    color: white;
    width: 160px;
    height: 140px;
    border-radius: 10px;
    text-decoration: none;
    font-family: var(--font-title);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

/* --- Login Modal & Form Styles (No changes) --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); display: none; align-items: center; justify-content: center; z-index: 1000; }
.modal-content { background-color: var(--bg-color); padding: 30px 40px; border-radius: 10px; border: 1px solid var(--accent-color); width: 90%; max-width: 400px; position: relative; box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5); }
.close-button { position: absolute; top: 15px; right: 20px; font-size: 2rem; color: #aaa; cursor: pointer; transition: color 0.2s ease; }
.close-button:hover { color: white; }
.modal-title { font-family: var(--font-title); font-size: 2rem; text-align: center; margin-bottom: 25px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent-color); }
.login-form .form-group { margin-bottom: 20px; }
.login-form label { display: block; margin-bottom: 8px; font-size: 0.9rem; font-weight: 500; color: #ccc; }
.login-form input[type="text"], .login-form input[type="password"] { width: 100%; padding: 12px; background-color: var(--input-bg); border: 1px solid var(--border-color); border-radius: 5px; color: var(--text-color); font-family: var(--font-text); font-size: 1rem; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.login-form input[type="text"]:focus, .login-form input[type="password"]:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(203, 92, 41, 0.3); }
.cf-turnstile { margin: 25px 0; }
.btn-submit { width: 100%; padding: 15px; background-color: var(--accent-color); color: white; border: none; border-radius: 5px; font-family: var(--font-title); font-size: 1.2rem; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: background-color 0.3s ease; }
.btn-submit:hover { background-color: #e06c34; }
.error-message { background-color: rgba(255, 0, 0, 0.1); border: 1px solid #ff4d4d; color: #ffcccc; padding: 10px; border-radius: 5px; text-align: center; margin-bottom: 15px; }

/* --- Small mobile adjustments --- */
@media (max-width: 480px) {
    .tiles-container { flex-direction: column; width: 100%; }
    .tile { width: 100%; height: 100px; flex-direction: row; justify-content: flex-start; padding-left: 20px; gap: 20px; }
    .tile i { font-size: 1.5rem; }
}

/* =======================================================================
   --- DESKTOP LAYOUT (for screens wider than 992px) ---
======================================================================= */
@media (min-width: 992px) {
    body {
        justify-content: flex-end;
    }

    .main-container {
        background-color: transparent;
        width: 45%;
        max-width: 600px;
        height: 100vh;
        padding: 0;
    }

    .content-box {
        max-width: 100%;
        height: 100%;
        border-radius: 0;
        justify-content: center;
    }
}



