:root {
    --primary-color: #004d00;
    --primary-hover: #003300;
    /* Revert to Radial Gradient as requested, but keeping noise overlay for smoothing */
    --bg-gradient-dark: radial-gradient(circle at center, #001a0d 0%, #000000 120%);
    --glass-bg-dark: rgba(20, 20, 20, 0.90);

    --text-dark: #eee;
    --font-stack: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--font-stack);
    background: var(--bg-gradient-dark);
    background-size: cover;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: var(--text-dark);
    position: relative;
    overflow-y: auto;
    box-sizing: border-box;
}

/* Noise Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-size: 100px 100px;
}



.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px; /* Reduced from 30px globally */
    width: 100%;
}

.logo-large {
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
    max-width: 100%;
    width: 400px;
    height: auto;
}

.center-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    z-index: 1;
}

.form-container {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    background-color: var(--glass-bg-dark); /* Use dark mode background */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1); /* Use dark mode border */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 0 auto;
}



.input-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
    width: 100%;
}

.input-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: inherit; /* Inherits from body/container */
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #555; /* Dark mode border */
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.3); /* Dark mode background */
    color: white; /* Dark mode text color */
}



.dark-mode .input-group input:focus {
    border-color: #008000;
    box-shadow: 0 0 0 3px rgba(0, 128, 0, 0.2);
    outline: none;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

.btn, input[type="submit"] {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 14px 0;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.register-btn, .login-btn {
    flex: 1;
}

input[type="submit"]:hover, .btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}



/* Footer */
footer {
    position: static;
    width: 100%;
    text-align: center;
    font-size: 12px;
    opacity: 0.6;
    z-index: 100;
    margin-top: 0;
}

/* Mobile Responsiveness */
@media only screen and (max-width: 600px) {
    body {
        padding: 40px 20px 20px 20px; /* Increased top padding, standard sides/bottom */
        justify-content: flex-start; /* Align to top instead of center */
        align-items: center;
        box-sizing: border-box;
        height: auto; /* Allow body to grow with content */
        min-height: 100vh;
    }
    
    .center-container {
        padding: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .logo-container {
        margin-bottom: 20px;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .logo-container a {
        display: block; /* Ensure link wraps image properly */
        text-align: center;
    }
    
    .logo-large {
        width: 80%;
        max-width: 250px;
        height: auto;
        display: block;
        margin: 0 auto;
    }
    
    .form-container {
        padding: 30px 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
    }
    
    .button-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .register-btn, .login-btn {
        width: 100%;
    }
}