:root {
    --primary: #007bff;
    --primary-hover: #0069d9;
    --secondary: #6c757d;
    --bg: #f4f6f9;
    --card-bg: #fff;
    --error: #dc3545;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: var(--bg);
}

.login-container {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--secondary);
    font-size: 0.95rem;
}

.error-message {
    background: var(--error);
    color: white;
    padding: 0.7rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    text-align: center;
}

.login-form .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.2rem;
}

.login-form .form-group label {
    margin-bottom: 0.3rem;
    color: #555;
    font-weight: 500;
}

.login-form .form-group input {
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.login-form .form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-login {
    width: 100%;
    padding: 0.8rem 0;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.3s;
}

.btn-login:hover {
    background: var(--primary-hover);
}
