﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-green: #006400;
    --primary-green-rgb: 0, 100, 0;
    --accent-blue: #2c7abe;
    --accent-blue-hover: #1e5a8f;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-light: #f8f9fa;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('/images/bg.png') no-repeat center center/cover;
    overflow: hidden;
}

    body::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(var(--primary-green-rgb), 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
        z-index: 1;
    }

.login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    padding: 20px;
    animation: fadeIn 1s ease-out;
}

.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow);
    text-align: center;
}

.logo-wrapper {
    margin-bottom: 24px;
}

    .logo-wrapper img {
        width: 80px;
        height: auto;
        filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    }

h1 {
    color: var(--text-light);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

p.subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 32px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
    text-align: left;
}

    .input-group label {
        display: block;
        color: var(--text-light);
        font-size: 13px;
        font-weight: 500;
        margin-bottom: 8px;
        margin-left: 4px;
    }

    .input-group input {
        width: 100%;
        padding: 14px 20px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        color: var(--text-light);
        font-size: 15px;
        transition: all 0.3s ease;
        outline: none;
    }

        .input-group input:focus {
            background: rgba(255, 255, 255, 0.2);
            border-color: var(--white);
            box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
        }

        .input-group input::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 13px;
}

.remember-me {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
}

    .remember-me input {
        margin-right: 8px;
        accent-color: var(--primary-green);
    }

.forgot-password {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

    .forgot-password:hover {
        opacity: 0.8;
        text-decoration: underline;
    }

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2ecc71 0%, var(--primary-green) 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 100, 0, 0.3);
}

    .login-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 100, 0, 0.4);
        filter: brightness(1.1);
    }

    .login-btn:active {
        transform: translateY(0);
    }

.footer-links {
    margin-top: 32px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

    .footer-links a {
        color: var(--white);
        text-decoration: none;
        font-weight: 600;
    }

        .footer-links a:hover {
            text-decoration: underline;
        }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Scrollbar for better aesthetics if content overflows */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.3);
    }

@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }

    h1 {
        font-size: 20px;
    }
}
