/* FONT IMPORT */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700&family=Montserrat:wght@400;500;600&display=swap');

/* BASIC RESET & THEME */
:root {
    --overlay-bg: rgba(42, 63, 58, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --text-light: #f2f2f2;
    --primary-green: #6a994e;
    --error-red: #ff4d4d;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #1a1a1a; /* Fallback */
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

/* VIDEO BACKGROUND & OVERLAY */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-bg);
    z-index: -1;
}

/* MINIMAL HEADER */
.minimal-header {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.logo img {
    height: 60px;
}

/* MAIN CONTENT BOX (LOGIN FORM) */
.login-container {
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem 3rem;
    border-radius: 12px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.login-container h1 {
    font-family: 'Merriweather', serif;
    font-size: 2rem;
    margin: 0 0 2rem 0;
}

/* FORM STYLES */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
    background-color: rgba(0,0,0,0.2);
    color: var(--text-light);
}
.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.forgot-password-link {
    display: block;
    text-align: right;
    font-size: 0.9em;
    margin-top: -1rem;
    margin-bottom: 1.5rem;
}
.forgot-password-link a {
    color: #ccc;
    text-decoration: none;
}
.forgot-password-link a:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    background-color: var(--primary-green);
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}
.login-btn:hover {
    background-color: #a7c957;
    color: #333;
}

/* ERROR MESSAGE */
#error-message {
    color: var(--error-red);
    background-color: rgba(255, 77, 77, 0.15);
    border: 1px solid var(--error-red);
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    display: none; /* Hidden by default */
}

/* FOOTER SIGNUP LINK */
.signup-link-footer {
    margin-top: 2rem;
    font-size: 1rem;
}

.signup-link-footer a {
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: underline;
}

.signup-link-footer a:hover {
    color: #a7c957;
}