/* Professional Rework */
body {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); /* Soft professional gradient */
    color: #333;
}

.login-screen {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); /* Subtle depth */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 350px; /* Keeps the card neat */
    text-align: center;
}

h1 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #2c3e50;
}

p {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 24px;
}

input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 5px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s;
    box-sizing: border-box; /* Ensures padding doesn't break width */
}

input[type="text"]:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

button {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background-color: #45a049;
}

button:active {
    transform: translateY(1px);
}

.error {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 5px;
    min-height: 1rem; /* Prevents layout jumping when error appears */
}

.hidden {
    visibility: hidden; /* Using visibility instead of display:none prevents the card from "jumping" */
}