/* ================================
   NEW LOGIN PAGE STYLES
   ================================ */

/* --- 1. Root Theme Variables --- */
:root {
    --bg-darkest: #1a1a1a;
    --bg-dark: #2a2a2a;
    --bg-light: #3a3a3a;
    --text-primary: #e0e0e0;
    --text-secondary: #aaaaaa;
    --accent-primary: #007bff;
    --accent-hover: #0056b3;
    --border-color: #444;
    --status-offline: #e74c3c;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- 2. Global & Body --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    background-color: var(--bg-darkest);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.5;
    height: 100%;
}

/* --- 3. Login Box --- */
#loginBox {
    width: 350px;
    padding: 30px;
    background-color: var(--bg-dark);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

h2 {
    padding: 0;
    margin: 0;
    margin-bottom: 24px;
    text-align: center;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.5rem;
}

/* --- 4. Forms & Inputs --- */
.inputContainer {
    margin-bottom: 15px;
    text-align: left;
}

label, .text-label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 5px;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 10px;
    background-color: var(--bg-darkest);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 5px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* --- 5. Button --- */
button {
    width: 100%;
    padding: 10px 1rem;
    background-color: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button:hover {
    background-color: var(--accent-hover);
}

button:active {
    background-color: var(--accent-hover);
    transform: translateY(1px); /* Press-down effect */
}

/* --- 6. (Optional) Error Message --- */
.error-message {
    font-size: 14px;
    color: var(--status-offline);
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--status-offline);
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-top: 20px;
    display: none; /* Hide by default */
}