/* General Body Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1d6b43 0%, #155a3a 100%);
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh;
}

/* Login Container */
.login-container { 
    background: #fff; 
    padding: 50px; 
    border-radius: 12px; 
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2); 
    width: 100%;
    max-width: 400px;
}

.login-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
}

.login-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

/* Input Fields */
input[type="text"], 
input[type="password"],
input[type="email"],
select { 
    width: 100%; 
    padding: 12px; 
    margin: 10px 0; 
    border-radius: 5px; 
    border: 1px solid #ddd;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
}

/* Checkbox */
input[type="checkbox"] { 
    margin-right: 5px;
    cursor: pointer;
}

/* Button */
/* The purple gradient + white text used to live here as a bare `button` rule.
   It is a LOGIN-page style, but a type selector matches every button in the
   app, so it leaked into research pages -- the Filter button on
   defense_evaluation_results.php flashed purple before its own green rule
   painted, and looked permanently purple until a refresh.

   The colours are removed rather than the whole rule, because the layout
   properties below are still relied on by other pages. The login button is
   unaffected: it is styled by .neu-button (a class selector, so it always
   won here anyway) which sets its own background:#1d6b43. */
button { 
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px; 
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

button:hover { 
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(29, 107, 67, 0.4);
}

button:active {
    transform: translateY(0);
}

/* Sign Up Link */
.signup-link { 
    text-align: center; 
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.signup-link a { 
    color: #667eea; 
    text-decoration: none;
    font-weight: 600;
}

.signup-link a:hover { 
    text-decoration: underline;
}

/* Notification */
.notif {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 500px) {
    .login-container {
        padding: 30px;
        margin: 10px;
    }

    button {
        padding: 10px;
    }
}