* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px; /* Limits width on desktop */
}

.login-form h2 {
    margin-bottom: 10px;
    color: #333;
    text-align: center;
}

.login-form p {
    color: #666;
    text-align: center;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.input-group {
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: #764ba2;
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 25px;
}

.options a {
    color: #764ba2;
    text-decoration: none;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: #764ba2;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.login-btn:hover {
    background: #5a3782;
}

.register-link {
    margin-top: 20px;
    font-size: 0.9rem;
}

/* Responsiveness for very small screens */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
    }
    
    .options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}